@battlegrid/mcp-server 31.2.79 → 31.2.80

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,56 @@ 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 — v98 (a clause can read the bar before)
28
+
29
+ **Breaking at v98: a condition clause accepts six operators that compare a column with its own previous
30
+ completed bar, and a clause's evidence gains a second shape.** v98 is the contract on top of v97.
31
+
32
+ ### Widened input — something new you can send
33
+
34
+ - A condition clause on `stage_strategy_draft` and `preview_strategy_report` accepts:
35
+ - `crossesAbove` / `crossesBelow` with a number `value` — TRUE when the value is above (below) it on the
36
+ decided bar and was at or below (at or above) it on the bar before. A bar landing exactly on the level
37
+ has not crossed.
38
+ - `increased` / `decreased` with **no** literal — strictly above (below) the prior bar's reading. A
39
+ `value` beside them is refused.
40
+ - `enters` / `exits` with one `label` — the label read now and not on the bar before, or the reverse.
41
+ - Numeric headers take the crossings and changes; classification, direction and boolean headers take the
42
+ transitions; event and rank headers take none of them. A strategy's served `conditionOperators`
43
+ (`preview_strategy_report` at `detail: "detailed"`, and the scalar vocabulary) lists exactly what each
44
+ header admits on that strategy; `get_strategy_column_contract`, which reads no strategy's stored history,
45
+ lists the operators the header's kind takes.
46
+ - Each of the six reads two completed bars, never the forming one, on every basis, so its reading is never
47
+ provisional. A failed read on either bar is `UNRESOLVED`; a bar with no value reads `FALSE`.
48
+
49
+ ### Narrowed acceptance — the same request, refused where it cannot be read
50
+
51
+ - A header whose stored history keeps only one bar (`conditionHold.maxWindow` 1) admits none of the six:
52
+ the clause is refused with `CONDITION_OPERATOR_UNSUPPORTED`, and every operator refusal's
53
+ `allowedDomain` now lists the operators that header admits.
54
+ - `crossesAbove`, `crossesBelow`, `enters` and `exits` are edges: a hold with `atLeast` above 1 is refused
55
+ (`CONDITION_HOLD_ILLEGAL`) — hold them "within n closes". A prior-bar clause's largest window is one bar
56
+ less than its header's, and the frame-read budget counts the bar before.
57
+
58
+ ### Reshaped output — a clause's evidence has two shapes
59
+
60
+ - A prior-bar clause's evidence carries **`priorOperand`** — the same column's reading on the bar before —
61
+ and a **`decidedBar` that is never null**. It appears on `preview_strategy_report`,
62
+ `get_radar_close_decisions`, `list_gate_blocks`, `preview_radar_resolution`, `get_signal_log`,
63
+ `get_agent_coin_qualification` (a condition level's clauses) and the trade register an agent reads.
64
+ - A current-bar clause's evidence is unchanged and carries no `priorOperand`; every record written before
65
+ v98 reads as it was written.
66
+ - Rendered evidence lines read prior before current: `RSI14_now crosses above 50 (49.6 → 50.4)`.
67
+
68
+ ### Widened output
69
+
70
+ - A condition series' `BOUND` threshold `op` widens to `crossesAbove` / `crossesBelow`, drawn at the level
71
+ crossed. A change or a transition draws no threshold.
72
+ - The authoring contract digest gains `domains.conditionOperator`, the thirteen operator names.
73
+
74
+ A clause reader that assumed one evidence shape, or an operator vocabulary of seven, breaks on the same
75
+ call at v98 — hence the MAJOR.
76
+
27
77
  ## Contract history — v97 (a signal records the evidence it decided on)
28
78
 
29
79
  **Breaking at v97: an evaluated signal's evidence keys move, `BB_TOUCH` touches by %B, and a crossing is
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.79";
52
+ export declare const PACKAGE_VERSION = "31.2.80";
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.79';
55
+ export const PACKAGE_VERSION = '31.2.80';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@battlegrid/mcp-server",
3
- "version": "31.2.79",
3
+ "version": "31.2.80",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",