mons-rust 0.1.118 → 0.1.119

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
@@ -5,6 +5,38 @@ or
5
5
 
6
6
  `npm install mons-rust`
7
7
 
8
+ ## automove
9
+
10
+ The active automove workflow lives here:
11
+
12
+ - canonical workflow: `HOW_TO_ITERATE_ON_AUTOMOVE.md`
13
+ - ideas backlog: `AUTOMOVE_IDEAS.md`
14
+ - compatibility entrypoint: `docs/automove-experiments.md`
15
+ - durable lessons: `docs/automove-knowledge.md`
16
+ - retired profile archive: `docs/automove-archive.md`
17
+
18
+ Useful scripts:
19
+
20
+ - `./scripts/run-automove-experiment.sh guardrails <candidate>`
21
+ - `./scripts/run-automove-experiment.sh runtime-preflight <candidate>`
22
+ - `./scripts/run-automove-experiment.sh triage-calibrate [reply_risk|opponent_mana|supermana|all]`
23
+ - `./scripts/run-automove-experiment.sh preflight <candidate>`
24
+ - `SMART_TRIAGE_SURFACE=<surface> ./scripts/run-automove-experiment.sh triage <candidate>`
25
+ - `SMART_PROMOTION_TARGET_MODE=<fast|normal> ./scripts/run-automove-experiment.sh audit-screen <candidate>`
26
+ - `SMART_PROMOTION_TARGET_MODE=<fast|normal> ./scripts/run-automove-experiment.sh fast-screen <candidate>`
27
+ - `SMART_PROMOTION_TARGET_MODE=<fast|normal> ./scripts/run-automove-experiment.sh progressive <candidate>`
28
+ - `SMART_PROMOTION_TARGET_MODE=<fast|normal> ./scripts/run-automove-experiment.sh ladder <candidate>`
29
+ - `SMART_TRIAGE_SURFACE=<opening_reply|primary_pro> ./scripts/run-automove-experiment.sh pro-triage <candidate>`
30
+ - `./scripts/run-automove-experiment.sh pro-audit-screen <candidate>`
31
+ - `./scripts/run-automove-experiment.sh pro-fast-screen <candidate>`
32
+ - `./scripts/run-automove-experiment.sh pro-progressive <candidate>`
33
+ - `./scripts/run-automove-experiment.sh pro-ladder <candidate>`
34
+ - `./scripts/run-automove-experiment.sh pre-screen <candidate>`
35
+ - `./scripts/run-automove-experiment.sh pro-pre-screen <candidate>`
36
+ - `./scripts/clean-experiment-artifacts.sh`
37
+
38
+ Run `triage-calibrate` before candidate work on `reply_risk`, `opponent_mana`, or `supermana`. Then use `guardrails -> triage -> runtime-preflight` so weak ideas die before the expensive CPU gate. `preflight` still exists as the old all-in-one wrapper. Most candidates should die at `triage`, `pro-triage`, or the first earned duel stage. For mode-specific `fast` or `normal` ideas, run duel stages with `SMART_PROMOTION_TARGET_MODE=<fast|normal>` so the target mode is the improvement bar and the other client mode is only a non-regression check. Use `audit-screen` or `pro-audit-screen` only as occasional spot checks for clean triage rejects. `pre-screen` and `pro-pre-screen` remain available only as legacy noise diagnostics. Unless documented otherwise, new candidates should be deltas on `runtime_current`.
39
+
8
40
  ## rules-tests runner
9
41
 
10
42
  Fixtures are stored as chunk archives in `rules-tests-chunks/` (default: `100000` fixtures per chunk).
package/mons-rust.d.ts CHANGED
@@ -10,25 +10,12 @@
10
10
  export function winner(fen_w: string, fen_b: string, flat_moves_string_w: string, flat_moves_string_b: string): string;
11
11
  /**
12
12
  */
13
- export enum ItemModelKind {
14
- Mon = 0,
15
- Mana = 1,
16
- MonWithMana = 2,
17
- MonWithConsumable = 3,
18
- Consumable = 4,
19
- }
20
- /**
21
- */
22
- export enum ManaKind {
23
- Regular = 0,
24
- Supermana = 1,
25
- }
26
- /**
27
- */
28
- export enum Consumable {
29
- Potion = 0,
30
- Bomb = 1,
31
- BombOrPotion = 2,
13
+ export enum MonKind {
14
+ Demon = 0,
15
+ Drainer = 1,
16
+ Angel = 2,
17
+ Spirit = 3,
18
+ Mystic = 4,
32
19
  }
33
20
  /**
34
21
  */
@@ -40,6 +27,30 @@ export enum AvailableMoveKind {
40
27
  }
41
28
  /**
42
29
  */
30
+ export enum EventModelKind {
31
+ MonMove = 0,
32
+ ManaMove = 1,
33
+ ManaScored = 2,
34
+ MysticAction = 3,
35
+ DemonAction = 4,
36
+ DemonAdditionalStep = 5,
37
+ SpiritTargetMove = 6,
38
+ PickupBomb = 7,
39
+ PickupPotion = 8,
40
+ PickupMana = 9,
41
+ MonFainted = 10,
42
+ ManaDropped = 11,
43
+ SupermanaBackToBase = 12,
44
+ BombAttack = 13,
45
+ MonAwake = 14,
46
+ BombExplosion = 15,
47
+ NextTurn = 16,
48
+ GameOver = 17,
49
+ Takeback = 18,
50
+ UsePotion = 19,
51
+ }
52
+ /**
53
+ */
43
54
  export enum SquareModelKind {
44
55
  Regular = 0,
45
56
  ConsumableBase = 1,
@@ -50,12 +61,16 @@ export enum SquareModelKind {
50
61
  }
51
62
  /**
52
63
  */
53
- export enum MonKind {
54
- Demon = 0,
55
- Drainer = 1,
56
- Angel = 2,
57
- Spirit = 3,
58
- Mystic = 4,
64
+ export enum Color {
65
+ White = 0,
66
+ Black = 1,
67
+ }
68
+ /**
69
+ */
70
+ export enum Consumable {
71
+ Potion = 0,
72
+ Bomb = 1,
73
+ BombOrPotion = 2,
59
74
  }
60
75
  /**
61
76
  */
@@ -87,33 +102,18 @@ export enum OutputModelKind {
87
102
  }
88
103
  /**
89
104
  */
90
- export enum Color {
91
- White = 0,
92
- Black = 1,
105
+ export enum ManaKind {
106
+ Regular = 0,
107
+ Supermana = 1,
93
108
  }
94
109
  /**
95
110
  */
96
- export enum EventModelKind {
97
- MonMove = 0,
98
- ManaMove = 1,
99
- ManaScored = 2,
100
- MysticAction = 3,
101
- DemonAction = 4,
102
- DemonAdditionalStep = 5,
103
- SpiritTargetMove = 6,
104
- PickupBomb = 7,
105
- PickupPotion = 8,
106
- PickupMana = 9,
107
- MonFainted = 10,
108
- ManaDropped = 11,
109
- SupermanaBackToBase = 12,
110
- BombAttack = 13,
111
- MonAwake = 14,
112
- BombExplosion = 15,
113
- NextTurn = 16,
114
- GameOver = 17,
115
- Takeback = 18,
116
- UsePotion = 19,
111
+ export enum ItemModelKind {
112
+ Mon = 0,
113
+ Mana = 1,
114
+ MonWithMana = 2,
115
+ MonWithConsumable = 3,
116
+ Consumable = 4,
117
117
  }
118
118
  /**
119
119
  */
package/mons-rust.js CHANGED
@@ -201,22 +201,22 @@ function handleError(f, args) {
201
201
  }
202
202
  /**
203
203
  */
204
- module.exports.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
204
+ module.exports.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
205
205
  /**
206
206
  */
207
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
207
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
208
208
  /**
209
209
  */
210
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
210
+ module.exports.EventModelKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",ManaScored:2,"2":"ManaScored",MysticAction:3,"3":"MysticAction",DemonAction:4,"4":"DemonAction",DemonAdditionalStep:5,"5":"DemonAdditionalStep",SpiritTargetMove:6,"6":"SpiritTargetMove",PickupBomb:7,"7":"PickupBomb",PickupPotion:8,"8":"PickupPotion",PickupMana:9,"9":"PickupMana",MonFainted:10,"10":"MonFainted",ManaDropped:11,"11":"ManaDropped",SupermanaBackToBase:12,"12":"SupermanaBackToBase",BombAttack:13,"13":"BombAttack",MonAwake:14,"14":"MonAwake",BombExplosion:15,"15":"BombExplosion",NextTurn:16,"16":"NextTurn",GameOver:17,"17":"GameOver",Takeback:18,"18":"Takeback",UsePotion:19,"19":"UsePotion", });
211
211
  /**
212
212
  */
213
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
213
+ module.exports.SquareModelKind = Object.freeze({ Regular:0,"0":"Regular",ConsumableBase:1,"1":"ConsumableBase",SupermanaBase:2,"2":"SupermanaBase",ManaBase:3,"3":"ManaBase",ManaPool:4,"4":"ManaPool",MonBase:5,"5":"MonBase", });
214
214
  /**
215
215
  */
216
- module.exports.SquareModelKind = Object.freeze({ Regular:0,"0":"Regular",ConsumableBase:1,"1":"ConsumableBase",SupermanaBase:2,"2":"SupermanaBase",ManaBase:3,"3":"ManaBase",ManaPool:4,"4":"ManaPool",MonBase:5,"5":"MonBase", });
216
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
217
217
  /**
218
218
  */
219
- module.exports.MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
219
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
220
220
  /**
221
221
  */
222
222
  module.exports.NextInputKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",MysticAction:2,"2":"MysticAction",DemonAction:3,"3":"DemonAction",DemonAdditionalStep:4,"4":"DemonAdditionalStep",SpiritTargetCapture:5,"5":"SpiritTargetCapture",SpiritTargetMove:6,"6":"SpiritTargetMove",SelectConsumable:7,"7":"SelectConsumable",BombAttack:8,"8":"BombAttack", });
@@ -228,10 +228,10 @@ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",Sele
228
228
  module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
229
229
  /**
230
230
  */
231
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
231
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
232
232
  /**
233
233
  */
234
- module.exports.EventModelKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",ManaScored:2,"2":"ManaScored",MysticAction:3,"3":"MysticAction",DemonAction:4,"4":"DemonAction",DemonAdditionalStep:5,"5":"DemonAdditionalStep",SpiritTargetMove:6,"6":"SpiritTargetMove",PickupBomb:7,"7":"PickupBomb",PickupPotion:8,"8":"PickupPotion",PickupMana:9,"9":"PickupMana",MonFainted:10,"10":"MonFainted",ManaDropped:11,"11":"ManaDropped",SupermanaBackToBase:12,"12":"SupermanaBackToBase",BombAttack:13,"13":"BombAttack",MonAwake:14,"14":"MonAwake",BombExplosion:15,"15":"BombExplosion",NextTurn:16,"16":"NextTurn",GameOver:17,"17":"GameOver",Takeback:18,"18":"Takeback",UsePotion:19,"19":"UsePotion", });
234
+ module.exports.ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
235
235
 
236
236
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
237
237
  ? { register: () => {}, unregister: () => {} }
@@ -1391,13 +1391,13 @@ module.exports.__wbg_outputmodel_new = function(arg0) {
1391
1391
  return addHeapObject(ret);
1392
1392
  };
1393
1393
 
1394
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1395
- const ret = NextInputModel.__wrap(arg0);
1394
+ module.exports.__wbg_location_new = function(arg0) {
1395
+ const ret = Location.__wrap(arg0);
1396
1396
  return addHeapObject(ret);
1397
1397
  };
1398
1398
 
1399
- module.exports.__wbg_location_new = function(arg0) {
1400
- const ret = Location.__wrap(arg0);
1399
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1400
+ const ret = NextInputModel.__wrap(arg0);
1401
1401
  return addHeapObject(ret);
1402
1402
  };
1403
1403
 
package/mons-rust_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mons-rust",
3
3
  "description": "super metal mons",
4
- "version": "0.1.118",
4
+ "version": "0.1.119",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",