@chrischall/warapp-mcp 0.17.0 → 0.19.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/my-games.js CHANGED
@@ -160,19 +160,54 @@ function bootClockOf(f) {
160
160
  }
161
161
  /** Under this many minutes left before a boot, a game is reported as close to one (and `warapp_session_status` warns). */
162
162
  export const BOOT_WARN_MINUTES = 6 * 60;
163
+ /**
164
+ * #504: the last turn counted as the opening. A missed turn 1–4 delays the first bonus by a turn or more (three of
165
+ * the twelve games whose first bonus came after the winner's had one), so those turns are flagged earlier.
166
+ */
167
+ export const OPENING_LAST_TURN = 4;
168
+ /** #504: an opening turn (or a real-time turn) is close to a boot with this share of its allowance or less left. */
169
+ export const BOOT_SHARE_WARN = 0.25;
163
170
  export const BOOT_NOTE = "From the game list: the game's boot time plus your banked time, less how long your turn has run (the web client " +
164
- 'shows the first two together beside each game). Banked time is eaten once the boot time is spent. The fields are ' +
165
- "read from war.app's client; the arithmetic is unverified live.";
166
- /** A multi-day game's boot view, or undefined: real-time, no boot time, the clock unread, or not a game I play. */
167
- export function bootView(clock, waitingOnYou) {
168
- if (!clock || clock.realTime || !(clock.bootMs > 0) || clock.bootMs >= NEVER_MS)
171
+ 'shows the first two together beside each game). Banked time is eaten once the boot time is spent. A multi-day ' +
172
+ `game is close to a boot under ${BOOT_WARN_MINUTES / 60} hours left; an opening turn (picks, or turns 1 to ` +
173
+ `${OPENING_LAST_TURN}: a missed one delays the first bonus) or a real-time turn also with a quarter of its time or ` +
174
+ "less left (#504). The fields are read from war.app's client; the arithmetic is unverified live, and for a real-time " +
175
+ 'game unverified at all.';
176
+ /**
177
+ * #504: whether `leftMinutes` is close to a boot: under {@link BOOT_WARN_MINUTES} in a multi-day game, and in an
178
+ * opening turn or a real-time game also at a quarter of the allowance or less (a real-time turn has no six-hour line).
179
+ */
180
+ export function bootSoon(leftMinutes, g) {
181
+ const byShare = (g.opening || g.realTime) === true && leftMinutes <= g.allowanceMinutes * BOOT_SHARE_WARN;
182
+ return byShare || (!g.realTime && leftMinutes < BOOT_WARN_MINUTES);
183
+ }
184
+ /**
185
+ * A game's boot view, or undefined: no boot time, the clock unread, or not a game I play. `opening`: the game is
186
+ * picking territories or on turns 1–{@link OPENING_LAST_TURN} (#504; a real-time game is reported since #504 too).
187
+ */
188
+ export function bootView(clock, waitingOnYou, opening = false) {
189
+ if (!clock || !(clock.bootMs > 0) || clock.bootMs >= NEVER_MS)
169
190
  return undefined;
170
191
  const min = (ms) => Math.max(0, Math.floor(ms / 60_000));
171
192
  const bootMinutes = min(clock.bootMs);
172
193
  const bankedMinutes = clock.bankedMs >= NEVER_MS ? 0 : min(clock.bankedMs);
173
194
  const allowanceMinutes = bootMinutes + bankedMinutes;
174
195
  const leftMinutes = waitingOnYou ? Math.max(0, allowanceMinutes - min(clock.turnForMs)) : null;
175
- return { bootMinutes, bankedMinutes, allowanceMinutes, leftMinutes, soon: leftMinutes !== null && leftMinutes < BOOT_WARN_MINUTES };
196
+ const soon = leftMinutes !== null && bootSoon(leftMinutes, { allowanceMinutes, realTime: clock.realTime, opening });
197
+ return {
198
+ bootMinutes,
199
+ bankedMinutes,
200
+ allowanceMinutes,
201
+ leftMinutes,
202
+ ...(clock.realTime ? { realTime: true } : {}),
203
+ ...(opening ? { opening: true } : {}),
204
+ soon,
205
+ ...(soon && opening ? { openingSoon: true } : {}),
206
+ };
207
+ }
208
+ /** #504: picking territories, or playing turns 1 to {@link OPENING_LAST_TURN}. */
209
+ export function isOpening(stateCode, lastTurn) {
210
+ return stateCode === GAME_DISTRIBUTING || (stateCode === GAME_PLAYING && lastTurn + 1 >= 1 && lastTurn + 1 <= OPENING_LAST_TURN);
176
211
  }
177
212
  /** Minutes as `2d 3h`, `5h 20m` or `45m`. */
178
213
  export function minutesText(m) {
@@ -207,7 +242,7 @@ export function summarizeMyGames(games, myInGameId) {
207
242
  const me = g.players.find((p) => p.id === myInGameId);
208
243
  const active = g.stateCode === GAME_PLAYING || g.stateCode === GAME_DISTRIBUTING;
209
244
  const waitingOnYou = active && me !== undefined && me.stateCode === PLAYER_PLAYING && !me.committed;
210
- const boot = active && me?.stateCode === PLAYER_PLAYING ? bootView(g.boot, waitingOnYou) : undefined;
245
+ const boot = active && me?.stateCode === PLAYER_PLAYING ? bootView(g.boot, waitingOnYou, isOpening(g.stateCode, g.lastTurn)) : undefined;
211
246
  return {
212
247
  id: g.id,
213
248
  name: g.name,
@@ -223,10 +258,13 @@ export function summarizeMyGames(games, myInGameId) {
223
258
  ...(boot ? { boot } : {}),
224
259
  };
225
260
  });
226
- // Waiting on me first, then unread private chat, then the rest (war.app's order within each).
261
+ // Waiting on me first — #504: an opening turn close to a boot before the rest, soonest first — then unread
262
+ // private chat, then the rest (war.app's order within each).
227
263
  const privateUnread = (g) => !g.waitingOnYou && g.unreadChat?.private === true;
264
+ const openingSoon = (g) => g.waitingOnYou && g.boot?.openingSoon === true;
228
265
  return [
229
- ...out.filter((g) => g.waitingOnYou),
266
+ ...out.filter(openingSoon).sort((a, b) => (a.boot?.leftMinutes ?? 0) - (b.boot?.leftMinutes ?? 0)),
267
+ ...out.filter((g) => g.waitingOnYou && !openingSoon(g)),
230
268
  ...out.filter(privateUnread),
231
269
  ...out.filter((g) => !g.waitingOnYou && !privateUnread(g)),
232
270
  ];
@@ -281,7 +319,9 @@ export function briefGameLine(game) {
281
319
  const u = game.unreadChat;
282
320
  const others = u ? ['public', 'team', 'group'].filter((c) => u[c]) : [];
283
321
  const unread = (u?.private ? ' — unread private' : '') + (others.length ? ` — unread ${others.join(', ')}` : '');
284
- const soon = game.boot?.soon && game.boot.leftMinutes !== null ? ` — boot in ${minutesText(game.boot.leftMinutes)}` : '';
322
+ const soon = game.boot?.soon && game.boot.leftMinutes !== null
323
+ ? ` — ${game.boot.openingSoon ? 'opening turn, ' : ''}boot in ${minutesText(game.boot.leftMinutes)}`
324
+ : '';
285
325
  const tail = ` — ${where} — ${game.waitingOnYou ? 'waiting on you' : 'waiting on others'}${soon}${unread}`;
286
326
  const flat = game.name.replace(/\s+/g, ' ').trim() || '(untitled)';
287
327
  const escaped = flat.startsWith('-- ') || flat.startsWith('\\') ? `\\${flat}` : flat;
@@ -64,9 +64,12 @@ export function registerCalibrationTool(server, dataDir) {
64
64
  'overall and by format, seats, phase (turns 1–4, 5–10, 11+), frontier coverage band, estimate source, thin ' +
65
65
  'evidence, the tracker\'s income method (rise-capped or not; logged since #569), leader vs trailer, and phase ' +
66
66
  'by coverage; the catch-up lag after a true income jump of 1.5× or more (turns until the estimate reaches two ' +
67
- 'thirds of the truth); a consequences proxy (turns that lost a territory the plan did not concede, with an ' +
67
+ 'thirds of the truth; only jumps on a planned turn, the rest counted as unwatched); a consequences proxy ' +
68
+ '(turns that lost a territory the plan did not concede, with an ' +
68
69
  'estimate under half the truth vs without); the largest misses; each pipeline stage\'s figure ÷ the truth ' +
69
- '(visible, observed, tracked, prior, stated, blend, thin, known; logged since #568); and what correcting the ' +
70
+ '(visible, observed, tracked, prior, stated, blend, thin, known; logged since #568); for each estimate under ' +
71
+ 'two thirds of the truth, the tracker step that held it (rise cap, tripwire, window, could-earn ceiling, ' +
72
+ 'ambiguous armies, readings, a later stage, or no track; logged since #586); and what correcting the ' +
70
73
  'tracked figure by its coverage band would have read at dampings 0 to 1 (leave one game out). `samples: true` adds the scored rows ' +
71
74
  `(at most ${MAX_SAMPLES}), name-free, as a fixture set; \`harness: true\` also runs the #318 harness over the ` +
72
75
  'cached boards (tracker, fog prior and plan estimate by coverage band, and the opening benchmark), which can ' +
@@ -11,7 +11,7 @@ import { stressPlan } from '../analysis/stress.js';
11
11
  import { neutralizeSeats, seatTerritories, staticSeats } from '../analysis/static-seats.js';
12
12
  import { profileFormatOf } from '../analysis/opponent-profile.js';
13
13
  import { handOwners } from './card-advice.js';
14
- import { fogPaceFor, mapMatchOf } from './past-games.js';
14
+ import { fogPaceFor, mapMatchOf, outlookCalibrationFor } from './past-games.js';
15
15
  import { sanctionMyIncome } from './card-effects.js';
16
16
  import { cardTypeByName, cardTypeName, normalizeGuid, readHand } from '../cards.js';
17
17
  import { claimedCardUses, claimedCardWarning, teamCardClaims, teamHandLeft, unclaimedFirst } from '../team-cards.js';
@@ -216,6 +216,8 @@ export function registerCheckPlanTool(server, ctx) {
216
216
  const settings = plannerSettings(game.settings);
217
217
  // #419: the past winners' pace, as warapp_plan_turn reads it (thin evidence's upper bound).
218
218
  const mapPace = await fogPaceFor(ctx.dataDir, undefined, game.settings?.mapId ?? map.id, mapMatchOf(profileFormatOf(game.players), game.settings), turn === null ? null : turn - 1);
219
+ // #568: past games' calibration of the tracked figures, as warapp_plan_turn reads it.
220
+ const trackCalibration = await outlookCalibrationFor(ctx.dataDir, undefined, profileFormatOf(game.players));
219
221
  const deploys = [];
220
222
  const moves = [];
221
223
  /** Options the game would refuse (#165): the orders are still tried, and the warning says so. */
@@ -378,6 +380,7 @@ export function registerCheckPlanTool(server, ctx) {
378
380
  info,
379
381
  ...(opening ? { opening } : {}),
380
382
  ...(mapPace ? { mapPace } : {}),
383
+ ...(trackCalibration ? { trackCalibration } : {}),
381
384
  ...(enemy_deploy !== undefined ? { enemyDeploy: enemy_deploy } : {}),
382
385
  assumeCards,
383
386
  // #444: the stated incomes scale the other opponents' prior, as warapp_plan_turn has them.
@@ -144,10 +144,13 @@ export function registerMyGamesTool(server, ctx, deps = {}) {
144
144
  'chat per channel (public, team, private, group) and toMe (unread private chat is addressed to you) — flags, ' +
145
145
  'not counts; null when they did not read. Games with unread private chat come right after the ones waiting on ' +
146
146
  'you, and the top-level unreadPrivateGames counts them; read them with warapp_chat_inbox. ' +
147
- 'A multi-day game being played or picked with your seat playing carries `boot` (pace, from the game list: its boot ' +
147
+ 'A game being played or picked with your seat playing carries `boot` (pace, from the game list: its boot ' +
148
148
  'time, your banked time, their sum, and while it waits on you `leftMinutes`, the sum less how long your turn has ' +
149
- 'run, with `soon` under 6 hours; unverified live); `bootSoon` counts the games close to a boot, and brief adds ' +
150
- '" — boot in …" to them. ' +
149
+ 'run, with `soon` under 6 hours in a multi-day game; unverified live). #504: an opening turn (`opening`: picks, or ' +
150
+ 'turns 1 to 4, where a missed turn delays the first bonus) is also `soon` with a quarter of that time or less left, ' +
151
+ 'and then `openingSoon`: those games come first, soonest first, and `openingBootSoon` counts them; a real-time ' +
152
+ 'game (`realTime`) is `soon` only at a quarter or less. `bootSoon` counts the games close to a boot, and brief adds ' +
153
+ '" — boot in …" (" — opening turn, boot in …") to them. ' +
151
154
  'Finished games are left out unless ' +
152
155
  '`include_finished` (`finishedLeftOut` counts them). `listed` is how many games war.app returned and ' +
153
156
  '`complete` false (with a `warning`) means the list may be partial. Use the id with the other warapp tools. ' +
@@ -194,9 +197,14 @@ export function registerMyGamesTool(server, ctx, deps = {}) {
194
197
  count: games.length,
195
198
  waitingOnYou: games.filter((g) => g.waitingOnYou).length,
196
199
  unreadPrivateGames: games.filter((g) => g.unreadChat?.private === true).length,
197
- // Pace: multi-day games whose boot is under six hours away (boot time plus bank, less my turn so far).
200
+ // Pace: games close to a boot (boot time plus bank, less my turn so far): under six hours in a multi-day game,
201
+ // and (#504) an opening or real-time turn from a quarter of its time left.
198
202
  ...(games.some((g) => g.boot)
199
- ? { bootSoon: games.filter((g) => g.boot?.soon).length, bootNote: BOOT_NOTE }
203
+ ? {
204
+ bootSoon: games.filter((g) => g.boot?.soon).length,
205
+ ...(games.some((g) => g.boot?.openingSoon) ? { openingBootSoon: games.filter((g) => g.boot?.openingSoon).length } : {}),
206
+ bootNote: BOOT_NOTE,
207
+ }
200
208
  : {}),
201
209
  surrenderPending: games.filter((g) => surrenderOwed(g.surrenderPending)).length,
202
210
  surrenderNote: SURRENDER_PENDING_NOTE +
@@ -1,14 +1,24 @@
1
1
  // Pace: the boot clocks of my multi-day games, as the last game-list read in this process saw them
2
2
  // (warapp_my_games, warapp_chat_inbox and every other tool that lists my games through `fetchMyGames`), so
3
3
  // warapp_session_status can warn of a boot close by without a war.app request of its own.
4
- import { BOOT_WARN_MINUTES, minutesText } from '../my-games.js';
4
+ import { BOOT_WARN_MINUTES, bootSoon as isBootSoon, minutesText, OPENING_LAST_TURN } from '../my-games.js';
5
5
  import { untrustedText } from './common.js';
6
6
  const snapshots = new WeakMap();
7
7
  /** Keep the boot clocks of `games` (summarized for me) as read at `at`, for the context `owner`. */
8
8
  export function rememberPace(owner, games, at) {
9
9
  snapshots.set(owner, {
10
10
  at,
11
- games: games.flatMap((g) => (g.boot?.leftMinutes != null ? [{ id: g.id, name: g.name, leftMinutes: g.boot.leftMinutes }] : [])),
11
+ games: games.flatMap((g) => g.boot?.leftMinutes != null && !g.boot.realTime
12
+ ? [
13
+ {
14
+ id: g.id,
15
+ name: g.name,
16
+ leftMinutes: g.boot.leftMinutes,
17
+ allowanceMinutes: g.boot.allowanceMinutes,
18
+ ...(g.boot.opening ? { opening: true } : {}),
19
+ },
20
+ ]
21
+ : []),
12
22
  });
13
23
  }
14
24
  /**
@@ -22,7 +32,8 @@ export function forgetPaceGame(owner, gameId) {
22
32
  }
23
33
  export const PACE_NOTE = `Read from the last game list this server read (warapp_my_games and the chat inbox read it): each game waiting on you ` +
24
34
  `whose boot time plus your banked time, less how long your turn has run, is under ${BOOT_WARN_MINUTES / 60} hours ` +
25
- 'away now. Unverified live; call warapp_my_games for a fresh read.';
35
+ `away now, or (#504) an opening turn (picks, or turns 1 to ${OPENING_LAST_TURN}) with a quarter of that time or less ` +
36
+ 'left; real-time games are not kept. Unverified live; call warapp_my_games for a fresh read.';
26
37
  export function paceStatus(owner, now) {
27
38
  const s = snapshots.get(owner);
28
39
  if (!s)
@@ -30,15 +41,21 @@ export function paceStatus(owner, now) {
30
41
  const ago = Math.max(0, Math.floor((now - s.at) / 60_000));
31
42
  const bootSoon = s.games
32
43
  .map((g) => ({ ...g, leftMinutes: Math.max(0, g.leftMinutes - ago) }))
33
- .filter((g) => g.leftMinutes < BOOT_WARN_MINUTES)
34
- .sort((a, b) => a.leftMinutes - b.leftMinutes || a.id - b.id)
35
- .map((g) => ({ id: g.id, name: untrustedText(g.name), leftMinutes: g.leftMinutes, left: minutesText(g.leftMinutes) }));
44
+ .filter((g) => isBootSoon(g.leftMinutes, g))
45
+ .sort((a, b) => Number(b.opening === true) - Number(a.opening === true) || a.leftMinutes - b.leftMinutes || a.id - b.id)
46
+ .map((g) => ({
47
+ id: g.id,
48
+ name: untrustedText(g.name),
49
+ leftMinutes: g.leftMinutes,
50
+ left: minutesText(g.leftMinutes),
51
+ ...(g.opening ? { opening: true } : {}),
52
+ }));
36
53
  return { listReadMinutesAgo: ago, bootSoon, note: PACE_NOTE };
37
54
  }
38
55
  /** The warning line for the games close to a boot, or undefined. */
39
56
  export function paceWarning(p) {
40
57
  if (!p?.bootSoon.length)
41
58
  return undefined;
42
- return (`Boot close: ${p.bootSoon.map((g) => `game ${g.id} in ${g.left}`).join(', ')} — take ${p.bootSoon.length === 1 ? 'that turn' : 'those turns'} ` +
43
- `(under ${BOOT_WARN_MINUTES / 60} hours left, boot time plus bank).`);
59
+ return (`Boot close: ${p.bootSoon.map((g) => `game ${g.id} in ${g.left}${g.opening ? ' (opening turn)' : ''}`).join(', ')} — take ${p.bootSoon.length === 1 ? 'that turn' : 'those turns'} ` +
60
+ `(under ${BOOT_WARN_MINUTES / 60} hours left, boot time plus bank${p.bootSoon.some((g) => g.opening) ? '; an opening turn from a quarter of its time left, and first: a missed one delays the first bonus' : ''}).`);
44
61
  }
@@ -11,6 +11,7 @@ import { currentTurn, gameIdArg, readAnnotations, respond, untrustedDescription
11
11
  import { lookupMeta, mintMeta } from './hints.js';
12
12
  import { failureText, FROZEN_TAB_HINT } from './live-context.js';
13
13
  import { fetchMyGames } from './my-games.js';
14
+ import { paceStatus } from './pace.js';
14
15
  import { requireMe } from './write-kit.js';
15
16
  import { surrenderOwed } from '../surrender-pending.js';
16
17
  import { fetchDetailsSeats, readPendingSurrenders, SURRENDER_PENDING_NOTE, surrenderOwedLine } from './surrender-pending.js';
@@ -42,6 +43,12 @@ function endedReason(game, playerId) {
42
43
  return `You are out of this game (your state: ${me.state}).`;
43
44
  return undefined;
44
45
  }
46
+ /** #504: the ready games with the ones close to a boot first, in `bootSoon`'s order (opening turns first). */
47
+ export function readyOrder(ready, bootSoon) {
48
+ const set = new Set(ready);
49
+ const first = bootSoon.map((g) => g.id).filter((id) => set.has(id));
50
+ return [...first, ...ready.filter((id) => !first.includes(id))];
51
+ }
45
52
  export function checkOf(game, playerId, surrenders) {
46
53
  const ended = endedReason(game, playerId);
47
54
  return {
@@ -277,6 +284,9 @@ export function registerPushTools(server, ctx, push, deps = {}) {
277
284
  'details, unverified live: null when unreadable, never "none"; empty without a read for a lobby, a finished ' +
278
285
  'game or one you no longer play in; after one failed read it stops asking for the ' +
279
286
  'rest of the wait and says why in `surrenderUnread`), unless `ignore_surrenders`. ' +
287
+ '#504: `bootSoon` names the watched games close to a boot as the last game list read saw them (no request of its ' +
288
+ 'own; omitted without one): opening turns first (`opening`: picks or turns 1 to 4, from a quarter of the time ' +
289
+ 'left), then under 6 hours; take those turns first. ' +
280
290
  'Pass the game ids to watch (1–20), or omit them to watch every game ' +
281
291
  'of yours being played or picked (the first 20, as warapp_my_games lists them). Reports progress while it ' +
282
292
  'waits and stops when the call is cancelled. Then plan with warapp_plan_turn (or pick with ' +
@@ -370,10 +380,14 @@ export function registerPushTools(server, ctx, push, deps = {}) {
370
380
  ...(progress ? { progress } : {}),
371
381
  });
372
382
  const st = push.status();
383
+ // #504: the watched games close to a boot, from the last game list read (no request of its own).
384
+ const watched = new Set(ids);
385
+ const bootSoon = (paceStatus(ctx, Date.now())?.bootSoon ?? []).filter((g) => watched.has(g.id));
373
386
  return respond(undefined, VIEWS, () => ({
374
387
  status: out.status,
375
388
  watching: ids,
376
- ...(out.status === 'your_turn' ? { ready: out.games.filter((g) => g.waitingOnYou).map((g) => g.id) } : {}),
389
+ ...(out.status === 'your_turn' ? { ready: readyOrder(out.games.filter((g) => g.waitingOnYou).map((g) => g.id), bootSoon) } : {}),
390
+ ...(bootSoon.length ? { bootSoon } : {}),
377
391
  // #317: the games where a surrender waits on my acceptance, whatever the status.
378
392
  ...(out.games.some((g) => g.surrenderOwed) ? { surrenders: out.games.filter((g) => g.surrenderOwed).map((g) => g.id) } : {}),
379
393
  games: out.games.map((g) => (out.chatActivity.includes(g.id) ? { ...g, chatActivity: true } : g)),
@@ -63,6 +63,7 @@ export function stressOpponents(input) {
63
63
  ...(unevenStart(game.settings) ? { unevenStart: unevenStart(game.settings) } : {}),
64
64
  ...(input.opening ? { opening: input.opening } : {}),
65
65
  ...(input.mapPace ? { mapPace: input.mapPace } : {}),
66
+ ...(input.trackCalibration ? { trackCalibration: input.trackCalibration } : {}),
66
67
  ...(game.settings?.fog !== undefined ? { fog: game.settings.fog } : {}),
67
68
  ...(opponentReinforcement(game.settings, hand) ? { reinforcement: opponentReinforcement(game.settings, hand) } : {}),
68
69
  },
@@ -1512,6 +1512,8 @@ export async function livePlanSetup(ctx, a) {
1512
1512
  // #166: the opponent's opening simulated from the starts the award proved, as the prior.
1513
1513
  ...(opening ? { opening } : {}),
1514
1514
  ...(mapPace ? { mapPace } : {}),
1515
+ // #568: the same calibration raises each tracked figure by its coverage band's damped factor.
1516
+ ...(calibration ? { trackCalibration: calibration } : {}),
1515
1517
  // #164: an opponent's Reinforcement card, from the turn the card clock says one can be in hand.
1516
1518
  ...(opponentReinforcement(game.settings, hand) ? { reinforcement: opponentReinforcement(game.settings, hand) } : {}),
1517
1519
  // #427: the Reinforcement plays seen in the turns' orders (card plays not fogged): a play restarts the clock.
@@ -1986,6 +1988,8 @@ async function commanderCheck(ctx, a) {
1986
1988
  const opening = openingThreat(award, a.game, graph, a.seen, a.turn);
1987
1989
  // #419: the past winners' pace, as the plan reads it.
1988
1990
  const mapPace = await fogPaceFor(ctx.dataDir, undefined, a.game.settings?.mapId ?? a.map.id, mapMatchOf(profileFormatOf(a.game.players), a.game.settings), a.turn === null ? null : a.turn - 1);
1991
+ // #568: past games' calibration of the tracked figures, as the plan reads it.
1992
+ const trackCalibration = await outlookCalibrationFor(ctx.dataDir, undefined, profileFormatOf(a.game.players));
1989
1993
  // stressOpponents reads a static seat's territories as neutrals (#270), on its own `board` too.
1990
1994
  const so = stressOpponents({
1991
1995
  graph,
@@ -2002,6 +2006,7 @@ async function commanderCheck(ctx, a) {
2002
2006
  info: a.info,
2003
2007
  ...(opening ? { opening } : {}),
2004
2008
  ...(mapPace ? { mapPace } : {}),
2009
+ ...(trackCalibration ? { trackCalibration } : {}),
2005
2010
  });
2006
2011
  // #275: an untrusted opponent's reply is sized at least at the figure its tripwire gave it, as
2007
2012
  // warapp_check_plan's stress test tries it (read only: warapp_plan_turn keeps the marks).
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Single source of truth for the server version. release-please bumps the
2
2
  // literal on the marked line (registered in release-please-config.json
3
3
  // extra-files); every other module imports VERSION from here.
4
- export const VERSION = '0.17.0'; // x-release-please-version
4
+ export const VERSION = '0.19.0'; // x-release-please-version
package/manifest.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifest_version": "0.3",
4
4
  "name": "warapp-mcp",
5
5
  "display_name": "war.app (Warzone)",
6
- "version": "0.17.0",
6
+ "version": "0.19.0",
7
7
  "description": "war.app (Warzone) game advisor for Claude — your games, maps, bonuses, board analysis and routes via the GameFeed API, plus your games list (waiting on you first), opponent scouting with your head-to-head, the live board, territory picks, cards, turn planning and submission, turn notifications, and chat through your signed-in war.app tab (ContextMint Bridge). Joining, leaving or surrendering a game, closing out a finished game, accepting another player's surrender, Begin on a speed first turn, picks, turn orders, withdrawing them, chat sends, marking notifications and chat read, deleting notifications, importing local history into a hosted server and linking a session (local only) are confirm-gated.",
8
8
  "author": {
9
9
  "name": "Chris Hall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrischall/warapp-mcp",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "mcpName": "io.github.chrischall/warapp-mcp",
5
5
  "description": "war.app (Warzone) game advisor MCP server for Claude — games, maps, bonuses and board analysis via the GameFeed API, plus your games list, opponent scouting, the live board, territory picks, cards, turn planning and submission, turn notifications and chat through your signed-in war.app tab. Developed and maintained by AI (Claude Code).",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",
@@ -52,14 +52,14 @@
52
52
  "@modelcontextprotocol/server": "^2.4.0",
53
53
  "acorn": "^8.19.0",
54
54
  "dotenv": "^18.0.1",
55
- "undici": "^8.12.4",
55
+ "undici": "^8.13.1",
56
56
  "zod": "^4.6.7"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@biomejs/biome": "^2.6.8",
60
60
  "@modelcontextprotocol/client": "^2.4.0",
61
61
  "@types/node": "^26.0.1",
62
- "@vitest/coverage-v8": "^5.0.0",
62
+ "@vitest/coverage-v8": "^5.1.1",
63
63
  "esbuild": "^0.28.1",
64
64
  "typescript": "^7.0.2",
65
65
  "vitest": "^5.0.0"
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/chrischall/warapp-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.17.0",
9
+ "version": "0.19.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@chrischall/warapp-mcp",
14
- "version": "0.17.0",
14
+ "version": "0.19.0",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },