mons-web 0.1.131 → 0.1.133
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 +17 -36
- package/mons-web.d.ts +76 -76
- package/mons-web.js +97 -94
- package/mons-web_bg.wasm +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,27 +11,18 @@ or
|
|
|
11
11
|
Docs:
|
|
12
12
|
|
|
13
13
|
- runbook: `HOW_TO_ITERATE_ON_AUTOMOVE.md`
|
|
14
|
-
-
|
|
15
|
-
- durable
|
|
16
|
-
- archive: `docs/automove-archive.md`
|
|
14
|
+
- next mechanism: `AUTOMOVE_IDEAS.md`
|
|
15
|
+
- durable evidence and lessons: `docs/automove-knowledge.md`
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
Shipping surface:
|
|
19
18
|
|
|
20
|
-
-
|
|
21
|
-
-
|
|
19
|
+
- Fast and Normal retain shipping search; Pro uses the promoted bounded tactical policy
|
|
20
|
+
- complete independently cold selector calls must remain below `700ms`
|
|
22
21
|
|
|
23
|
-
|
|
22
|
+
Experiments use a small candidate-specific `#[cfg(test)]` harness:
|
|
24
23
|
|
|
25
|
-
-
|
|
26
|
-
- `./scripts/
|
|
27
|
-
- `./scripts/run-automove-experiment.sh <stage> frontier_pro_v2_guarded`
|
|
28
|
-
- `./scripts/clean-experiment-artifacts.sh --dry-run`
|
|
29
|
-
|
|
30
|
-
Artifacts:
|
|
31
|
-
|
|
32
|
-
- selected-profile logs: `target/experiment-runs/<profile>/`
|
|
33
|
-
- workflow-only logs: `target/experiment-runs/misc/`
|
|
34
|
-
- runtime-preflight stamps: `target/experiment-stamps/`
|
|
24
|
+
- `cargo test --release --lib <test_name> -- --ignored --nocapture --test-threads=1`
|
|
25
|
+
- `./scripts/check-automove-hygiene.sh`
|
|
35
26
|
|
|
36
27
|
## Rules Tests
|
|
37
28
|
|
|
@@ -41,25 +32,15 @@ Runner:
|
|
|
41
32
|
- `./scripts/run-rules-tests.sh --limit 100`
|
|
42
33
|
- `./scripts/run-rules-tests.sh --log /tmp/rules-tests.log`
|
|
43
34
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
- `./scripts/pack-rules-tests.sh --dir /tmp/rules-tests-work --chunks-dir ./rules-tests-chunks --chunk-size 100000`
|
|
49
|
-
|
|
50
|
-
## Repo Cleanup
|
|
51
|
-
|
|
52
|
-
- `./repo-clean.sh`
|
|
53
|
-
- `./repo-clean.sh --local-only`
|
|
54
|
-
|
|
55
|
-
Use `keep/<name>` for any branch that should survive repo cleanup.
|
|
35
|
+
The checked-in corpus is `test-data/rules-regressions.jsonl.gz`. Its manifest records
|
|
36
|
+
the deterministic 10,000-case selection policy, source archive hashes, coverage, and
|
|
37
|
+
artifact hashes. The runner verifies the complete stream even when `--limit` executes
|
|
38
|
+
only a prefix.
|
|
56
39
|
|
|
57
40
|
## Publishing
|
|
58
41
|
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
- Run `
|
|
64
|
-
- Run `cargo test --release --lib smart_automove_release_mixed_runtime_speed_gate -- --ignored --nocapture`.
|
|
65
|
-
- Clean disposable experiment artifacts after validation with `./scripts/clean-experiment-artifacts.sh`.
|
|
42
|
+
- Set the release version in `Cargo.toml` and regenerate `Cargo.lock`, then commit the
|
|
43
|
+
complete release change set. Publishing requires a clean worktree.
|
|
44
|
+
- Run `./publish.sh --check-only` for the complete rules, Rust, release-gate, Wasm,
|
|
45
|
+
public-surface, cold-route, and npm-size validation without publishing.
|
|
46
|
+
- Run `./publish.sh` only after the check-only path passes and the release commit is clean.
|
package/mons-web.d.ts
CHANGED
|
@@ -10,59 +10,55 @@
|
|
|
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
|
-
|
|
13
|
+
export enum Consumable {
|
|
14
|
+
Potion = 0,
|
|
15
|
+
Bomb = 1,
|
|
16
|
+
BombOrPotion = 2,
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
*/
|
|
20
|
-
export enum
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
export enum ItemModelKind {
|
|
21
|
+
Mon = 0,
|
|
22
|
+
Mana = 1,
|
|
23
|
+
MonWithMana = 2,
|
|
24
|
+
MonWithConsumable = 3,
|
|
25
|
+
Consumable = 4,
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
*/
|
|
28
|
-
export enum
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ManaPool = 4,
|
|
34
|
-
MonBase = 5,
|
|
29
|
+
export enum AvailableMoveKind {
|
|
30
|
+
MonMove = 0,
|
|
31
|
+
ManaMove = 1,
|
|
32
|
+
Action = 2,
|
|
33
|
+
Potion = 3,
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
37
36
|
*/
|
|
38
|
-
export enum
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
InnerWedgeManaRows = 5,
|
|
45
|
-
OuterWedgeManaRows = 6,
|
|
46
|
-
BentCenterManaRows = 7,
|
|
47
|
-
OuterEdgeManaRows = 8,
|
|
48
|
-
SplitFlankManaRows = 9,
|
|
49
|
-
ForwardBridgeManaRows = 10,
|
|
50
|
-
CornerChainManaRows = 11,
|
|
37
|
+
export enum MonKind {
|
|
38
|
+
Demon = 0,
|
|
39
|
+
Drainer = 1,
|
|
40
|
+
Angel = 2,
|
|
41
|
+
Spirit = 3,
|
|
42
|
+
Mystic = 4,
|
|
51
43
|
}
|
|
52
44
|
/**
|
|
53
45
|
*/
|
|
54
|
-
export enum
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Action = 2,
|
|
58
|
-
Potion = 3,
|
|
46
|
+
export enum Color {
|
|
47
|
+
White = 0,
|
|
48
|
+
Black = 1,
|
|
59
49
|
}
|
|
60
50
|
/**
|
|
61
51
|
*/
|
|
62
|
-
export enum
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
export enum Modifier {
|
|
53
|
+
SelectPotion = 0,
|
|
54
|
+
SelectBomb = 1,
|
|
55
|
+
Cancel = 2,
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*/
|
|
59
|
+
export enum ManaKind {
|
|
60
|
+
Regular = 0,
|
|
61
|
+
Supermana = 1,
|
|
66
62
|
}
|
|
67
63
|
/**
|
|
68
64
|
*/
|
|
@@ -90,12 +86,11 @@ export enum EventModelKind {
|
|
|
90
86
|
}
|
|
91
87
|
/**
|
|
92
88
|
*/
|
|
93
|
-
export enum
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
Mystic = 4,
|
|
89
|
+
export enum OutputModelKind {
|
|
90
|
+
InvalidInput = 0,
|
|
91
|
+
LocationsToStartFrom = 1,
|
|
92
|
+
NextInputOptions = 2,
|
|
93
|
+
Events = 3,
|
|
99
94
|
}
|
|
100
95
|
/**
|
|
101
96
|
*/
|
|
@@ -112,24 +107,29 @@ export enum NextInputKind {
|
|
|
112
107
|
}
|
|
113
108
|
/**
|
|
114
109
|
*/
|
|
115
|
-
export enum
|
|
110
|
+
export enum SquareModelKind {
|
|
116
111
|
Regular = 0,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
Mon = 0,
|
|
123
|
-
Mana = 1,
|
|
124
|
-
MonWithMana = 2,
|
|
125
|
-
MonWithConsumable = 3,
|
|
126
|
-
Consumable = 4,
|
|
112
|
+
ConsumableBase = 1,
|
|
113
|
+
SupermanaBase = 2,
|
|
114
|
+
ManaBase = 3,
|
|
115
|
+
ManaPool = 4,
|
|
116
|
+
MonBase = 5,
|
|
127
117
|
}
|
|
128
118
|
/**
|
|
129
119
|
*/
|
|
130
|
-
export enum
|
|
131
|
-
|
|
132
|
-
|
|
120
|
+
export enum GameVariant {
|
|
121
|
+
Classic = 0,
|
|
122
|
+
SwappedManaRows = 1,
|
|
123
|
+
OffsetArcManaRows = 2,
|
|
124
|
+
CenterSpokeManaRows = 3,
|
|
125
|
+
AlternatingManaRows = 4,
|
|
126
|
+
InnerWedgeManaRows = 5,
|
|
127
|
+
OuterWedgeManaRows = 6,
|
|
128
|
+
BentCenterManaRows = 7,
|
|
129
|
+
OuterEdgeManaRows = 8,
|
|
130
|
+
SplitFlankManaRows = 9,
|
|
131
|
+
ForwardBridgeManaRows = 10,
|
|
132
|
+
CornerChainManaRows = 11,
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
135
|
*/
|
|
@@ -464,8 +464,12 @@ export interface InitOutput {
|
|
|
464
464
|
readonly __wbg_get_itemmodel_kind: (a: number) => number;
|
|
465
465
|
readonly __wbg_get_itemmodel_mana: (a: number) => number;
|
|
466
466
|
readonly __wbg_get_itemmodel_mon: (a: number) => number;
|
|
467
|
+
readonly __wbg_get_location_i: (a: number) => number;
|
|
468
|
+
readonly __wbg_get_location_j: (a: number) => number;
|
|
467
469
|
readonly __wbg_get_manamodel_color: (a: number) => number;
|
|
468
470
|
readonly __wbg_get_manamodel_kind: (a: number) => number;
|
|
471
|
+
readonly __wbg_get_mon_color: (a: number) => number;
|
|
472
|
+
readonly __wbg_get_mon_kind: (a: number) => number;
|
|
469
473
|
readonly __wbg_get_nextinputmodel_actor_mon_item: (a: number) => number;
|
|
470
474
|
readonly __wbg_get_nextinputmodel_kind: (a: number) => number;
|
|
471
475
|
readonly __wbg_get_nextinputmodel_modifier: (a: number) => number;
|
|
@@ -474,7 +478,9 @@ export interface InitOutput {
|
|
|
474
478
|
readonly __wbg_get_squaremodel_kind: (a: number) => number;
|
|
475
479
|
readonly __wbg_get_squaremodel_mon_kind: (a: number) => number;
|
|
476
480
|
readonly __wbg_itemmodel_free: (a: number) => void;
|
|
481
|
+
readonly __wbg_location_free: (a: number) => void;
|
|
477
482
|
readonly __wbg_manamodel_free: (a: number) => void;
|
|
483
|
+
readonly __wbg_mon_free: (a: number) => void;
|
|
478
484
|
readonly __wbg_monsgamemodel_free: (a: number) => void;
|
|
479
485
|
readonly __wbg_nextinputmodel_free: (a: number) => void;
|
|
480
486
|
readonly __wbg_outputmodel_free: (a: number) => void;
|
|
@@ -489,8 +495,12 @@ export interface InitOutput {
|
|
|
489
495
|
readonly __wbg_set_itemmodel_kind: (a: number, b: number) => void;
|
|
490
496
|
readonly __wbg_set_itemmodel_mana: (a: number, b: number) => void;
|
|
491
497
|
readonly __wbg_set_itemmodel_mon: (a: number, b: number) => void;
|
|
498
|
+
readonly __wbg_set_location_i: (a: number, b: number) => void;
|
|
499
|
+
readonly __wbg_set_location_j: (a: number, b: number) => void;
|
|
492
500
|
readonly __wbg_set_manamodel_color: (a: number, b: number) => void;
|
|
493
501
|
readonly __wbg_set_manamodel_kind: (a: number, b: number) => void;
|
|
502
|
+
readonly __wbg_set_mon_color: (a: number, b: number) => void;
|
|
503
|
+
readonly __wbg_set_mon_kind: (a: number, b: number) => void;
|
|
494
504
|
readonly __wbg_set_nextinputmodel_actor_mon_item: (a: number, b: number) => void;
|
|
495
505
|
readonly __wbg_set_nextinputmodel_kind: (a: number, b: number) => void;
|
|
496
506
|
readonly __wbg_set_nextinputmodel_modifier: (a: number, b: number) => void;
|
|
@@ -498,7 +508,13 @@ export interface InitOutput {
|
|
|
498
508
|
readonly __wbg_set_squaremodel_color: (a: number, b: number) => void;
|
|
499
509
|
readonly __wbg_set_squaremodel_kind: (a: number, b: number) => void;
|
|
500
510
|
readonly __wbg_set_squaremodel_mon_kind: (a: number, b: number) => void;
|
|
511
|
+
readonly __wbg_squaremodel_free: (a: number) => void;
|
|
501
512
|
readonly __wbg_verbosetrackingentitymodel_free: (a: number) => void;
|
|
513
|
+
readonly location_new: (a: number, b: number) => number;
|
|
514
|
+
readonly mon_decrease_cooldown: (a: number) => void;
|
|
515
|
+
readonly mon_faint: (a: number) => void;
|
|
516
|
+
readonly mon_is_fainted: (a: number) => number;
|
|
517
|
+
readonly mon_new: (a: number, b: number, c: number) => number;
|
|
502
518
|
readonly monsgamemodel_active_color: (a: number) => number;
|
|
503
519
|
readonly monsgamemodel_automove: (a: number) => number;
|
|
504
520
|
readonly monsgamemodel_available_move_kinds: (a: number, b: number) => void;
|
|
@@ -537,27 +553,11 @@ export interface InitOutput {
|
|
|
537
553
|
readonly verbosetrackingentitymodel_events: (a: number, b: number) => void;
|
|
538
554
|
readonly verbosetrackingentitymodel_events_fen: (a: number, b: number) => void;
|
|
539
555
|
readonly verbosetrackingentitymodel_fen: (a: number, b: number) => void;
|
|
556
|
+
readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
540
557
|
readonly __wbg_set_nextinputmodel_location: (a: number, b: number) => void;
|
|
558
|
+
readonly __wbg_get_mon_cooldown: (a: number) => number;
|
|
541
559
|
readonly __wbg_get_nextinputmodel_location: (a: number) => number;
|
|
542
|
-
readonly __wbg_squaremodel_free: (a: number) => void;
|
|
543
|
-
readonly __wbg_get_location_i: (a: number) => number;
|
|
544
|
-
readonly __wbg_get_location_j: (a: number) => number;
|
|
545
|
-
readonly __wbg_get_mon_color: (a: number) => number;
|
|
546
|
-
readonly __wbg_get_mon_kind: (a: number) => number;
|
|
547
|
-
readonly __wbg_location_free: (a: number) => void;
|
|
548
|
-
readonly __wbg_mon_free: (a: number) => void;
|
|
549
|
-
readonly __wbg_set_location_i: (a: number, b: number) => void;
|
|
550
|
-
readonly __wbg_set_location_j: (a: number, b: number) => void;
|
|
551
|
-
readonly __wbg_set_mon_color: (a: number, b: number) => void;
|
|
552
|
-
readonly __wbg_set_mon_kind: (a: number, b: number) => void;
|
|
553
|
-
readonly mon_decrease_cooldown: (a: number) => void;
|
|
554
|
-
readonly mon_faint: (a: number) => void;
|
|
555
|
-
readonly mon_is_fainted: (a: number) => number;
|
|
556
|
-
readonly mon_new: (a: number, b: number, c: number) => number;
|
|
557
|
-
readonly location_new: (a: number, b: number) => number;
|
|
558
560
|
readonly __wbg_set_mon_cooldown: (a: number, b: number) => void;
|
|
559
|
-
readonly __wbg_get_mon_cooldown: (a: number) => number;
|
|
560
|
-
readonly winner: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
561
561
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
562
562
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
563
563
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
package/mons-web.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as __wbg_star0 from './snippets/mons-rust-4fcb9fbcc93443ef/inline0.js';
|
|
2
|
+
|
|
1
3
|
let wasm;
|
|
2
4
|
|
|
3
5
|
const heap = new Array(128).fill(undefined);
|
|
@@ -115,6 +117,37 @@ function getInt32Memory0() {
|
|
|
115
117
|
}
|
|
116
118
|
return cachedInt32Memory0;
|
|
117
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* @param {string} fen_w
|
|
122
|
+
* @param {string} fen_b
|
|
123
|
+
* @param {string} flat_moves_string_w
|
|
124
|
+
* @param {string} flat_moves_string_b
|
|
125
|
+
* @returns {string}
|
|
126
|
+
*/
|
|
127
|
+
export function winner(fen_w, fen_b, flat_moves_string_w, flat_moves_string_b) {
|
|
128
|
+
let deferred5_0;
|
|
129
|
+
let deferred5_1;
|
|
130
|
+
try {
|
|
131
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
132
|
+
const ptr0 = passStringToWasm0(fen_w, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
133
|
+
const len0 = WASM_VECTOR_LEN;
|
|
134
|
+
const ptr1 = passStringToWasm0(fen_b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
135
|
+
const len1 = WASM_VECTOR_LEN;
|
|
136
|
+
const ptr2 = passStringToWasm0(flat_moves_string_w, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
137
|
+
const len2 = WASM_VECTOR_LEN;
|
|
138
|
+
const ptr3 = passStringToWasm0(flat_moves_string_b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
139
|
+
const len3 = WASM_VECTOR_LEN;
|
|
140
|
+
wasm.winner(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
141
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
142
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
143
|
+
deferred5_0 = r0;
|
|
144
|
+
deferred5_1 = r1;
|
|
145
|
+
return getStringFromWasm0(r0, r1);
|
|
146
|
+
} finally {
|
|
147
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
148
|
+
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
118
151
|
|
|
119
152
|
let cachedUint32Memory0 = null;
|
|
120
153
|
|
|
@@ -157,37 +190,6 @@ function getArrayI32FromWasm0(ptr, len) {
|
|
|
157
190
|
ptr = ptr >>> 0;
|
|
158
191
|
return getInt32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
159
192
|
}
|
|
160
|
-
/**
|
|
161
|
-
* @param {string} fen_w
|
|
162
|
-
* @param {string} fen_b
|
|
163
|
-
* @param {string} flat_moves_string_w
|
|
164
|
-
* @param {string} flat_moves_string_b
|
|
165
|
-
* @returns {string}
|
|
166
|
-
*/
|
|
167
|
-
export function winner(fen_w, fen_b, flat_moves_string_w, flat_moves_string_b) {
|
|
168
|
-
let deferred5_0;
|
|
169
|
-
let deferred5_1;
|
|
170
|
-
try {
|
|
171
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
172
|
-
const ptr0 = passStringToWasm0(fen_w, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
173
|
-
const len0 = WASM_VECTOR_LEN;
|
|
174
|
-
const ptr1 = passStringToWasm0(fen_b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
175
|
-
const len1 = WASM_VECTOR_LEN;
|
|
176
|
-
const ptr2 = passStringToWasm0(flat_moves_string_w, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
177
|
-
const len2 = WASM_VECTOR_LEN;
|
|
178
|
-
const ptr3 = passStringToWasm0(flat_moves_string_b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
179
|
-
const len3 = WASM_VECTOR_LEN;
|
|
180
|
-
wasm.winner(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
181
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
182
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
183
|
-
deferred5_0 = r0;
|
|
184
|
-
deferred5_1 = r1;
|
|
185
|
-
return getStringFromWasm0(r0, r1);
|
|
186
|
-
} finally {
|
|
187
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
188
|
-
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
193
|
|
|
192
194
|
function handleError(f, args) {
|
|
193
195
|
try {
|
|
@@ -198,40 +200,40 @@ function handleError(f, args) {
|
|
|
198
200
|
}
|
|
199
201
|
/**
|
|
200
202
|
*/
|
|
201
|
-
export const
|
|
203
|
+
export const Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
|
|
202
204
|
/**
|
|
203
205
|
*/
|
|
204
|
-
export const
|
|
206
|
+
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", });
|
|
205
207
|
/**
|
|
206
208
|
*/
|
|
207
|
-
export const
|
|
209
|
+
export const AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
|
|
208
210
|
/**
|
|
209
211
|
*/
|
|
210
|
-
export const
|
|
212
|
+
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", });
|
|
211
213
|
/**
|
|
212
214
|
*/
|
|
213
|
-
export const
|
|
215
|
+
export const Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
|
|
214
216
|
/**
|
|
215
217
|
*/
|
|
216
|
-
export const
|
|
218
|
+
export const Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
|
|
217
219
|
/**
|
|
218
220
|
*/
|
|
219
|
-
export const
|
|
221
|
+
export const ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
|
|
220
222
|
/**
|
|
221
223
|
*/
|
|
222
|
-
export const
|
|
224
|
+
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
225
|
/**
|
|
224
226
|
*/
|
|
225
|
-
export const
|
|
227
|
+
export const OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
|
|
226
228
|
/**
|
|
227
229
|
*/
|
|
228
|
-
export const
|
|
230
|
+
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
231
|
/**
|
|
230
232
|
*/
|
|
231
|
-
export const
|
|
233
|
+
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", });
|
|
232
234
|
/**
|
|
233
235
|
*/
|
|
234
|
-
export const
|
|
236
|
+
export const GameVariant = Object.freeze({ Classic:0,"0":"Classic",SwappedManaRows:1,"1":"SwappedManaRows",OffsetArcManaRows:2,"2":"OffsetArcManaRows",CenterSpokeManaRows:3,"3":"CenterSpokeManaRows",AlternatingManaRows:4,"4":"AlternatingManaRows",InnerWedgeManaRows:5,"5":"InnerWedgeManaRows",OuterWedgeManaRows:6,"6":"OuterWedgeManaRows",BentCenterManaRows:7,"7":"BentCenterManaRows",OuterEdgeManaRows:8,"8":"OuterEdgeManaRows",SplitFlankManaRows:9,"9":"SplitFlankManaRows",ForwardBridgeManaRows:10,"10":"ForwardBridgeManaRows",CornerChainManaRows:11,"11":"CornerChainManaRows", });
|
|
235
237
|
|
|
236
238
|
const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
237
239
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1414,17 +1416,13 @@ async function __wbg_load(module, imports) {
|
|
|
1414
1416
|
function __wbg_get_imports() {
|
|
1415
1417
|
const imports = {};
|
|
1416
1418
|
imports.wbg = {};
|
|
1419
|
+
imports.wbg.__wbg_location_unwrap = function(arg0) {
|
|
1420
|
+
const ret = Location.__unwrap(takeObject(arg0));
|
|
1421
|
+
return ret;
|
|
1422
|
+
};
|
|
1417
1423
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1418
1424
|
takeObject(arg0);
|
|
1419
1425
|
};
|
|
1420
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1421
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1422
|
-
return addHeapObject(ret);
|
|
1423
|
-
};
|
|
1424
|
-
imports.wbg.__wbg_location_new = function(arg0) {
|
|
1425
|
-
const ret = Location.__wrap(arg0);
|
|
1426
|
-
return addHeapObject(ret);
|
|
1427
|
-
};
|
|
1428
1426
|
imports.wbg.__wbg_eventmodel_new = function(arg0) {
|
|
1429
1427
|
const ret = EventModel.__wrap(arg0);
|
|
1430
1428
|
return addHeapObject(ret);
|
|
@@ -1433,16 +1431,16 @@ function __wbg_get_imports() {
|
|
|
1433
1431
|
const ret = NextInputModel.__wrap(arg0);
|
|
1434
1432
|
return addHeapObject(ret);
|
|
1435
1433
|
};
|
|
1436
|
-
imports.wbg.
|
|
1437
|
-
const ret =
|
|
1438
|
-
return ret;
|
|
1434
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1435
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1436
|
+
return addHeapObject(ret);
|
|
1439
1437
|
};
|
|
1440
1438
|
imports.wbg.__wbg_verbosetrackingentitymodel_new = function(arg0) {
|
|
1441
1439
|
const ret = VerboseTrackingEntityModel.__wrap(arg0);
|
|
1442
1440
|
return addHeapObject(ret);
|
|
1443
1441
|
};
|
|
1444
|
-
imports.wbg.
|
|
1445
|
-
const ret =
|
|
1442
|
+
imports.wbg.__wbg_location_new = function(arg0) {
|
|
1443
|
+
const ret = Location.__wrap(arg0);
|
|
1446
1444
|
return addHeapObject(ret);
|
|
1447
1445
|
};
|
|
1448
1446
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
@@ -1450,6 +1448,10 @@ function __wbg_get_imports() {
|
|
|
1450
1448
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1451
1449
|
return ret;
|
|
1452
1450
|
};
|
|
1451
|
+
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
1452
|
+
const ret = getObject(arg0).crypto;
|
|
1453
|
+
return addHeapObject(ret);
|
|
1454
|
+
};
|
|
1453
1455
|
imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
|
|
1454
1456
|
const ret = getObject(arg0).process;
|
|
1455
1457
|
return addHeapObject(ret);
|
|
@@ -1470,36 +1472,52 @@ function __wbg_get_imports() {
|
|
|
1470
1472
|
const ret = module.require;
|
|
1471
1473
|
return addHeapObject(ret);
|
|
1472
1474
|
}, arguments) };
|
|
1473
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
1474
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
1475
|
-
return ret;
|
|
1476
|
-
};
|
|
1477
1475
|
imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
1478
1476
|
const ret = getObject(arg0).msCrypto;
|
|
1479
1477
|
return addHeapObject(ret);
|
|
1480
1478
|
};
|
|
1479
|
+
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
1480
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1481
|
+
}, arguments) };
|
|
1481
1482
|
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
1482
1483
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
1483
1484
|
}, arguments) };
|
|
1484
|
-
imports.wbg.
|
|
1485
|
-
getObject(arg0)
|
|
1485
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
1486
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
1487
|
+
return ret;
|
|
1488
|
+
};
|
|
1489
|
+
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
|
|
1490
|
+
const ret = self.self;
|
|
1491
|
+
return addHeapObject(ret);
|
|
1486
1492
|
}, arguments) };
|
|
1493
|
+
imports.wbg.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
|
|
1494
|
+
const ret = window.window;
|
|
1495
|
+
return addHeapObject(ret);
|
|
1496
|
+
}, arguments) };
|
|
1497
|
+
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
|
|
1498
|
+
const ret = globalThis.globalThis;
|
|
1499
|
+
return addHeapObject(ret);
|
|
1500
|
+
}, arguments) };
|
|
1501
|
+
imports.wbg.__wbg_global_207b558942527489 = function() { return handleError(function () {
|
|
1502
|
+
const ret = global.global;
|
|
1503
|
+
return addHeapObject(ret);
|
|
1504
|
+
}, arguments) };
|
|
1505
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1506
|
+
const ret = getObject(arg0) === undefined;
|
|
1507
|
+
return ret;
|
|
1508
|
+
};
|
|
1487
1509
|
imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
|
|
1488
1510
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1489
1511
|
return addHeapObject(ret);
|
|
1490
1512
|
};
|
|
1513
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
1514
|
+
const ret = getObject(arg0);
|
|
1515
|
+
return addHeapObject(ret);
|
|
1516
|
+
};
|
|
1491
1517
|
imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
|
|
1492
1518
|
const ret = new Uint8Array(getObject(arg0));
|
|
1493
1519
|
return addHeapObject(ret);
|
|
1494
1520
|
};
|
|
1495
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1496
|
-
const obj = getObject(arg1);
|
|
1497
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1498
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1499
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1500
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
1501
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1502
|
-
};
|
|
1503
1521
|
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
|
1504
1522
|
const ret = getObject(arg0).buffer;
|
|
1505
1523
|
return addHeapObject(ret);
|
|
@@ -1519,38 +1537,22 @@ function __wbg_get_imports() {
|
|
|
1519
1537
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1520
1538
|
return addHeapObject(ret);
|
|
1521
1539
|
};
|
|
1522
|
-
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
|
|
1523
|
-
const ret = self.self;
|
|
1524
|
-
return addHeapObject(ret);
|
|
1525
|
-
}, arguments) };
|
|
1526
|
-
imports.wbg.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
|
|
1527
|
-
const ret = window.window;
|
|
1528
|
-
return addHeapObject(ret);
|
|
1529
|
-
}, arguments) };
|
|
1530
|
-
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
|
|
1531
|
-
const ret = globalThis.globalThis;
|
|
1532
|
-
return addHeapObject(ret);
|
|
1533
|
-
}, arguments) };
|
|
1534
|
-
imports.wbg.__wbg_global_207b558942527489 = function() { return handleError(function () {
|
|
1535
|
-
const ret = global.global;
|
|
1536
|
-
return addHeapObject(ret);
|
|
1537
|
-
}, arguments) };
|
|
1538
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1539
|
-
const ret = getObject(arg0) === undefined;
|
|
1540
|
-
return ret;
|
|
1541
|
-
};
|
|
1542
1540
|
imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
|
|
1543
1541
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
1544
1542
|
return addHeapObject(ret);
|
|
1545
1543
|
}, arguments) };
|
|
1546
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
1547
|
-
const ret = getObject(arg0);
|
|
1548
|
-
return addHeapObject(ret);
|
|
1549
|
-
};
|
|
1550
1544
|
imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1551
1545
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1552
1546
|
return addHeapObject(ret);
|
|
1553
1547
|
}, arguments) };
|
|
1548
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1549
|
+
const obj = getObject(arg1);
|
|
1550
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1551
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1552
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1553
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
1554
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1555
|
+
};
|
|
1554
1556
|
imports.wbg.__wbindgen_memory = function() {
|
|
1555
1557
|
const ret = wasm.memory;
|
|
1556
1558
|
return addHeapObject(ret);
|
|
@@ -1558,6 +1560,7 @@ function __wbg_get_imports() {
|
|
|
1558
1560
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1559
1561
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1560
1562
|
};
|
|
1563
|
+
imports['./snippets/mons-rust-4fcb9fbcc93443ef/inline0.js'] = __wbg_star0;
|
|
1561
1564
|
|
|
1562
1565
|
return imports;
|
|
1563
1566
|
}
|
package/mons-web_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "mons-web",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "super metal mons",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.133",
|
|
6
6
|
"license": "CC0-1.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
"sideEffects": [
|
|
19
19
|
"./snippets/*"
|
|
20
20
|
]
|
|
21
|
-
}
|
|
21
|
+
}
|