@chrischall/warapp-mcp 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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +1 -1
- package/dist/analysis/arena.js +389 -0
- package/dist/analysis/plan/captures.js +10 -58
- package/dist/analysis/plan/estimates.js +14 -46
- package/dist/analysis/plan/guard-off.js +1 -2
- package/dist/analysis/plan/report.js +2 -11
- package/dist/analysis/plan/siege.js +1 -49
- package/dist/analysis/plan/stand-still.js +3 -4
- package/dist/analysis/plan/stockpile.js +0 -16
- package/dist/analysis/plan/strike-stack.js +1 -6
- package/dist/analysis/plan/strike.js +10 -0
- package/dist/analysis/plan/targets.js +20 -27
- package/dist/analysis/plan/threats.js +20 -8
- package/dist/analysis/plan/withdraw.js +1 -2
- package/dist/analysis/planner.js +7 -37
- package/dist/bundle.js +61 -178
- package/dist/tools/turn.js +2 -4
- package/dist/version.js +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/dist/analysis/plan/horizon.js +0 -42
package/dist/tools/turn.js
CHANGED
|
@@ -2218,9 +2218,7 @@ export function registerTurnTools(server, ctx, opts = {}) {
|
|
|
2218
2218
|
'an opponent is bounded above by all it can have received (its start, or an even share of the map; each turn\'s most it could earn; ' +
|
|
2219
2219
|
'a fixed Reinforcement card by the card clock) — a scenario\'s starts, a Gift card or a progressive Reinforcement card leave it unbounded, and then `winning` is never read; ' +
|
|
2220
2220
|
'once winning or losing, payback tests count the turns the game has left instead of 10). With no `goal` the profile picks and tunes it (`goalSource` ' +
|
|
2221
|
-
'"profile"):
|
|
2222
|
-
'opponent beside me — with a sure break costing at most 2 turns of its bonus and at most my income; handed back ' +
|
|
2223
|
-
'once its assault trigger fires), else defend when behind outside a 1v1, else balanced — in an FFA with two or more opponents, no ' +
|
|
2221
|
+
'"profile"): defend when behind outside a 1v1, else balanced — in an FFA with two or more opponents, no ' +
|
|
2224
2222
|
'second front; in a 1v1, one strike stack facing the opponent; ahead in a 1v1, fog pressure ' +
|
|
2225
2223
|
`up to ${AHEAD_PRESSURE_FACTOR}× a typical neutral capture. Goals: "balanced" (default) — income per army ` +
|
|
2226
2224
|
'across holds, bonuses and breaking enemy bonuses, at least 30% on expansion; "expand" — neutrals only; ' +
|
|
@@ -2347,7 +2345,7 @@ export function registerTurnTools(server, ctx, opts = {}) {
|
|
|
2347
2345
|
goal: z
|
|
2348
2346
|
.enum(GOALS)
|
|
2349
2347
|
.optional()
|
|
2350
|
-
.describe('Omit to let the game profile pick (
|
|
2348
|
+
.describe('Omit to let the game profile pick (defend when behind on income outside a 1v1, else balanced, tuned to the format). ' +
|
|
2351
2349
|
'balanced (default): best income per army across holds, bonuses and breaking enemy bonuses; expand: take ' +
|
|
2352
2350
|
'neutrals only; complete-bonus: also attack players to finish bonuses; defend: hold threatened borders first; ' +
|
|
2353
2351
|
"siege: against one opponent (siege_target), fund its cheapest bonus breaks first and build one strike stack " +
|
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.
|
|
4
|
+
export const VERSION = '0.20.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.
|
|
6
|
+
"version": "0.20.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.
|
|
3
|
+
"version": "0.20.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>",
|
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.
|
|
9
|
+
"version": "0.20.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@chrischall/warapp-mcp",
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.20.0",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/** #432: the payback horizon, in turns, of a 1v1 whose gates are short at the start of the turn. */
|
|
2
|
-
export const SHORT_GATES_PAYBACK_TURNS = 5;
|
|
3
|
-
/**
|
|
4
|
-
* The start-of-turn gate budget (#297's arithmetic on my start-of-turn holdings and armies), and the shorter horizon
|
|
5
|
-
* when it is short: adapting only (as #201), a 1v1 only, in contact, the gates' summed shortfall over my income, and
|
|
6
|
-
* only when that horizon is shorter than the one the plan already counts (a decided game's may be shorter still).
|
|
7
|
-
* `undefined` otherwise.
|
|
8
|
-
*/
|
|
9
|
-
export function shortGatesHorizon(pc, threats) {
|
|
10
|
-
if (!pc.auto || pc.profile.format !== '1v1' || pc.capturePaybackTurns <= SHORT_GATES_PAYBACK_TURNS)
|
|
11
|
-
return undefined;
|
|
12
|
-
const ours = (n) => pc.mineSet.has(n);
|
|
13
|
-
let deficit = 0;
|
|
14
|
-
let player;
|
|
15
|
-
for (const x of pc.mine) {
|
|
16
|
-
const th = threats.nextTurnAt(x, ours);
|
|
17
|
-
if (!th)
|
|
18
|
-
continue;
|
|
19
|
-
player ??= th.player;
|
|
20
|
-
deficit += Math.max(0, threats.holdArmies(th.threat) - pc.armiesOf(x) - pc.unitsAt(x));
|
|
21
|
-
}
|
|
22
|
-
if (player === undefined || deficit <= pc.income)
|
|
23
|
-
return undefined;
|
|
24
|
-
return { player, deficit, turns: SHORT_GATES_PAYBACK_TURNS };
|
|
25
|
-
}
|
|
26
|
-
/** The rationale line for {@link shortGatesHorizon}'s reading. */
|
|
27
|
-
export function shortGatesLine(pc, s) {
|
|
28
|
-
return `Gate budget short (#432): in this 1v1 the gates facing player ${s.player} need ${s.deficit} more than stands on them against its one floating deploy, more than my income of ${pc.income}, so every capture's payback test counts ${s.turns} turns instead of ${pc.capturePaybackTurns} (holds keep ${pc.paybackTurns}).`;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Apply {@link shortGatesHorizon} to the plan: its rationale line, and the shorter horizon every later phase reads
|
|
32
|
-
* from `pc.capturePaybackTurns` (holds keep `pc.paybackTurns`). Run right after the threats phase (nothing before it applies a payback test).
|
|
33
|
-
*/
|
|
34
|
-
export function applyShortGates(pc, ps, threats) {
|
|
35
|
-
const sg = shortGatesHorizon(pc, threats);
|
|
36
|
-
if (!sg)
|
|
37
|
-
return undefined;
|
|
38
|
-
ps.rationale.push(shortGatesLine(pc, sg));
|
|
39
|
-
pc.capturePaybackTurns = sg.turns;
|
|
40
|
-
pc.shortGates = sg;
|
|
41
|
-
return sg;
|
|
42
|
-
}
|