mons-web 0.1.116 → 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 +32 -0
- package/mons-web.d.ts +46 -46
- package/mons-web.js +14 -14
- package/mons-web_bg.wasm +0 -0
- package/package.json +1 -1
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-web.d.ts
CHANGED
|
@@ -10,37 +10,20 @@
|
|
|
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
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*/
|
|
20
|
-
export enum NextInputKind {
|
|
21
|
-
MonMove = 0,
|
|
22
|
-
ManaMove = 1,
|
|
23
|
-
MysticAction = 2,
|
|
24
|
-
DemonAction = 3,
|
|
25
|
-
DemonAdditionalStep = 4,
|
|
26
|
-
SpiritTargetCapture = 5,
|
|
27
|
-
SpiritTargetMove = 6,
|
|
28
|
-
SelectConsumable = 7,
|
|
29
|
-
BombAttack = 8,
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
*/
|
|
33
|
-
export enum AvailableMoveKind {
|
|
34
|
-
MonMove = 0,
|
|
35
|
-
ManaMove = 1,
|
|
36
|
-
Action = 2,
|
|
37
|
-
Potion = 3,
|
|
13
|
+
export enum OutputModelKind {
|
|
14
|
+
InvalidInput = 0,
|
|
15
|
+
LocationsToStartFrom = 1,
|
|
16
|
+
NextInputOptions = 2,
|
|
17
|
+
Events = 3,
|
|
38
18
|
}
|
|
39
19
|
/**
|
|
40
20
|
*/
|
|
41
|
-
export enum
|
|
42
|
-
|
|
43
|
-
|
|
21
|
+
export enum MonKind {
|
|
22
|
+
Demon = 0,
|
|
23
|
+
Drainer = 1,
|
|
24
|
+
Angel = 2,
|
|
25
|
+
Spirit = 3,
|
|
26
|
+
Mystic = 4,
|
|
44
27
|
}
|
|
45
28
|
/**
|
|
46
29
|
*/
|
|
@@ -54,12 +37,17 @@ export enum SquareModelKind {
|
|
|
54
37
|
}
|
|
55
38
|
/**
|
|
56
39
|
*/
|
|
57
|
-
export enum
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
40
|
+
export enum ManaKind {
|
|
41
|
+
Regular = 0,
|
|
42
|
+
Supermana = 1,
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
*/
|
|
46
|
+
export enum AvailableMoveKind {
|
|
47
|
+
MonMove = 0,
|
|
48
|
+
ManaMove = 1,
|
|
49
|
+
Action = 2,
|
|
50
|
+
Potion = 3,
|
|
63
51
|
}
|
|
64
52
|
/**
|
|
65
53
|
*/
|
|
@@ -93,11 +81,30 @@ export enum EventModelKind {
|
|
|
93
81
|
}
|
|
94
82
|
/**
|
|
95
83
|
*/
|
|
96
|
-
export enum
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
84
|
+
export enum Modifier {
|
|
85
|
+
SelectPotion = 0,
|
|
86
|
+
SelectBomb = 1,
|
|
87
|
+
Cancel = 2,
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
*/
|
|
91
|
+
export enum NextInputKind {
|
|
92
|
+
MonMove = 0,
|
|
93
|
+
ManaMove = 1,
|
|
94
|
+
MysticAction = 2,
|
|
95
|
+
DemonAction = 3,
|
|
96
|
+
DemonAdditionalStep = 4,
|
|
97
|
+
SpiritTargetCapture = 5,
|
|
98
|
+
SpiritTargetMove = 6,
|
|
99
|
+
SelectConsumable = 7,
|
|
100
|
+
BombAttack = 8,
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
*/
|
|
104
|
+
export enum Consumable {
|
|
105
|
+
Potion = 0,
|
|
106
|
+
Bomb = 1,
|
|
107
|
+
BombOrPotion = 2,
|
|
101
108
|
}
|
|
102
109
|
/**
|
|
103
110
|
*/
|
|
@@ -110,13 +117,6 @@ export enum ItemModelKind {
|
|
|
110
117
|
}
|
|
111
118
|
/**
|
|
112
119
|
*/
|
|
113
|
-
export enum Modifier {
|
|
114
|
-
SelectPotion = 0,
|
|
115
|
-
SelectBomb = 1,
|
|
116
|
-
Cancel = 2,
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
*/
|
|
120
120
|
export class EventModel {
|
|
121
121
|
free(): void;
|
|
122
122
|
/**
|
package/mons-web.js
CHANGED
|
@@ -198,22 +198,19 @@ function handleError(f, args) {
|
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
200
|
*/
|
|
201
|
-
export const
|
|
201
|
+
export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
202
202
|
/**
|
|
203
203
|
*/
|
|
204
|
-
export const
|
|
204
|
+
export const 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
|
-
export const
|
|
207
|
+
export const 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", });
|
|
208
208
|
/**
|
|
209
209
|
*/
|
|
210
210
|
export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
211
211
|
/**
|
|
212
212
|
*/
|
|
213
|
-
export const
|
|
214
|
-
/**
|
|
215
|
-
*/
|
|
216
|
-
export const MonKind = Object.freeze({ Demon:0,"0":"Demon",Drainer:1,"1":"Drainer",Angel:2,"2":"Angel",Spirit:3,"3":"Spirit",Mystic:4,"4":"Mystic", });
|
|
213
|
+
export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
217
214
|
/**
|
|
218
215
|
*/
|
|
219
216
|
export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
@@ -222,13 +219,16 @@ export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", })
|
|
|
222
219
|
export const 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", });
|
|
223
220
|
/**
|
|
224
221
|
*/
|
|
225
|
-
export const
|
|
222
|
+
export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
226
223
|
/**
|
|
227
224
|
*/
|
|
228
|
-
export const
|
|
225
|
+
export const 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", });
|
|
229
226
|
/**
|
|
230
227
|
*/
|
|
231
|
-
export const
|
|
228
|
+
export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
229
|
+
/**
|
|
230
|
+
*/
|
|
231
|
+
export const ItemModelKind = Object.freeze({ Mon:0,"0":"Mon",Mana:1,"1":"Mana",MonWithMana:2,"2":"MonWithMana",MonWithConsumable:3,"3":"MonWithConsumable",Consumable:4,"4":"Consumable", });
|
|
232
232
|
|
|
233
233
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
234
234
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1409,14 +1409,14 @@ function __wbg_get_imports() {
|
|
|
1409
1409
|
const ret = OutputModel.__wrap(arg0);
|
|
1410
1410
|
return addHeapObject(ret);
|
|
1411
1411
|
};
|
|
1412
|
-
imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
|
|
1413
|
-
const ret = NextInputModel.__wrap(arg0);
|
|
1414
|
-
return addHeapObject(ret);
|
|
1415
|
-
};
|
|
1416
1412
|
imports.wbg.__wbg_location_new = function(arg0) {
|
|
1417
1413
|
const ret = Location.__wrap(arg0);
|
|
1418
1414
|
return addHeapObject(ret);
|
|
1419
1415
|
};
|
|
1416
|
+
imports.wbg.__wbg_nextinputmodel_new = function(arg0) {
|
|
1417
|
+
const ret = NextInputModel.__wrap(arg0);
|
|
1418
|
+
return addHeapObject(ret);
|
|
1419
|
+
};
|
|
1420
1420
|
imports.wbg.__wbg_eventmodel_new = function(arg0) {
|
|
1421
1421
|
const ret = EventModel.__wrap(arg0);
|
|
1422
1422
|
return addHeapObject(ret);
|
package/mons-web_bg.wasm
CHANGED
|
Binary file
|