@battlegrid/mcp-server 31.2.70 → 31.2.71

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/README.md CHANGED
@@ -24,6 +24,34 @@ Seeing package `31.x` alongside handshake `battlegrid@33.x` — the package **be
24
24
 
25
25
  **What this changes for you:** nothing about how you call anything. Upgrading the package no longer waits on a server deploy, and a server deploy no longer strands you on a package that names the wrong contract — reconnect and the announcement follows. **Contract breaking-change notes are no longer keyed to package versions**, since a contract move is no longer a release here; the v11-and-earlier notes below are kept as history, and the live vocabulary is always discovery.
26
26
 
27
+ ## Contract history — v89 (a new strategy is held to today's operator bounds)
28
+
29
+ **Breaking at v89: acceptance narrows behind unchanged schemas.** v89 is the contract on top of v88.1.
30
+
31
+ ### Narrowed acceptance — `commit_strategy_draft`, `preview_strategy_report` (`DRAFT` source)
32
+
33
+ - **A create judges every dial of the new strategy at the operator bounds configured now.** That includes a dial
34
+ the author typed, one a fork copied from its source, and one left at the creation default. The operator bounds
35
+ are the platform's ATR %, stop-loss ATR-multiple and risk:reward limits.
36
+ - At v88.1 a create judged only the dials that differed from the fork's source or the creation default. So a copied
37
+ dial outside a bound tightened since the source stored it was committed.
38
+ - At v89 `commit_strategy_draft` (`expectedRevision: null`) refuses that create with `VALIDATION_ERROR`, naming the
39
+ dial and the bound, for example `minAtrPct (0.1) must be >= 0.15`. Nothing is created and the draft is unchanged:
40
+ stage the dial inside the bound and commit again.
41
+ - `preview_strategy_report` with `source: { kind: "DRAFT", … }` composes the draft exactly as the commit does, so it
42
+ refuses the same draft with the same error where v88.1 rendered it.
43
+ - `stage_strategy_draft` and `get_strategy_draft` report the error in their diagnostics before the commit.
44
+ - `fork_strategy`'s description now says this, so its description hash moves.
45
+
46
+ ### Behaviour behind unchanged schemas
47
+
48
+ - **An edit still judges only what it moves.** An update or a restore carries a dial it leaves unchanged, so a stored
49
+ value outside a since-tightened bound stays readable and saveable on its own strategy.
50
+ - **The platform keeps its defaults creatable.** An operator cannot set a bound that would put a creation default
51
+ outside it, so a create that leaves a dial untouched is never refused for a value the platform seeded.
52
+
53
+ Something accepted at v88.1 is refused at v89 — hence the MAJOR.
54
+
27
55
  ## Contract history — v88.1 (an open position keeps the exit rules it opened under)
28
56
 
29
57
  **Additive at v88.1: acceptance widens and one served value narrows; no input or output schema
package/dist/index.d.ts CHANGED
@@ -49,7 +49,7 @@ import { type Implementation, type Prompt, type Resource } from '@modelcontextpr
49
49
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
50
50
  * correction. Never move it to track the server.
51
51
  */
52
- export declare const PACKAGE_VERSION = "31.2.70";
52
+ export declare const PACKAGE_VERSION = "31.2.71";
53
53
  export declare const DEFAULT_URL = "https://mcp.battlegrid.trade/mcp";
54
54
  export interface EnvConfig {
55
55
  apiKeys: string[];
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ import { ListToolsRequestSchema, CallToolRequestSchema, ListPromptsRequestSchema
52
52
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
53
53
  * correction. Never move it to track the server.
54
54
  */
55
- export const PACKAGE_VERSION = '31.2.70';
55
+ export const PACKAGE_VERSION = '31.2.71';
56
56
  export const DEFAULT_URL = 'https://mcp.battlegrid.trade/mcp';
57
57
  const MAX_RETRIES = 3;
58
58
  const RETRY_DELAYS_MS = [2000, 4000, 8000];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@battlegrid/mcp-server",
3
- "version": "31.2.70",
4
- "description": "BattleGrid MCP server \u2014 play crypto prediction games from AI agents",
3
+ "version": "31.2.71",
4
+ "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "bin": {