mons-rust 0.1.132 → 0.1.134

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
@@ -11,32 +11,25 @@ or
11
11
  Docs:
12
12
 
13
13
  - runbook: `HOW_TO_ITERATE_ON_AUTOMOVE.md`
14
- - live board: `AUTOMOVE_IDEAS.md`
15
- - structural review: `docs/automove-structural-review.md`
16
- - durable rules: `docs/automove-knowledge.md`
17
- - archive: `docs/automove-archive.md`
14
+ - next mechanism: `AUTOMOVE_IDEAS.md`
15
+ - durable evidence and lessons: `docs/automove-knowledge.md`
18
16
 
19
- Live surface:
17
+ Shipping surface:
20
18
 
21
- - retained profiles: `shipping_pro_search`, previous-production `frontier_pro_v2_guarded`, promoted `frontier_pro_v10_bounded_tactical`
22
- - canonical stages: `guardrails`, `pro-triage`, `runtime-preflight`, `pro-reliability`, `pro-reliability-confirm`
19
+ - Fast and Normal retain shipping search; Pro uses the promoted bounded tactical policy
20
+ - complete independently cold selector calls must remain below `700ms`
23
21
 
24
- Quickstart:
22
+ Experiments use a small candidate-specific `#[cfg(test)]` harness:
25
23
 
26
- - `./scripts/run-automove-canonical-loop.sh frontier_pro_v10_bounded_tactical`
27
- - `./scripts/run-automove-canonical-loop.sh --confirm frontier_pro_v10_bounded_tactical`
28
- - `./scripts/run-automove-experiment.sh <stage> frontier_pro_v10_bounded_tactical`
29
- - `./scripts/run-automove-experiment.sh pro-profile-sweep frontier_pro_v2_raw`
24
+ - `cargo test --release --lib <test_name> -- --ignored --nocapture --test-threads=1`
30
25
  - `./scripts/check-automove-hygiene.sh`
31
- - `./scripts/clean-experiment-artifacts.sh --dry-run`
32
- - `./scripts/clean-experiment-artifacts.sh --dry-run --all-target`
33
26
 
34
- Artifacts:
27
+ ## Real-player complete games
35
28
 
36
- - selected-profile logs: `target/experiment-runs/<profile>/`
37
- - workflow-only logs: `target/experiment-runs/misc/`
38
- - runtime-preflight stamps: `target/experiment-stamps/`
39
- - full local build/artifact cache: `target/` via `--all-target`
29
+ The immutable, move-only corpus of 1,527 complete games played by real players is
30
+ documented in [test-data/complete-games/v1](https://github.com/supermetalmons/mons-rust/tree/main/test-data/complete-games/v1).
31
+ It is repository research data, not part of the Rust or npm package surface. Run
32
+ `node ./scripts/check-complete-games.cjs` to verify its pinned bytes and schema.
40
33
 
41
34
  ## Rules Tests
42
35
 
@@ -46,29 +39,15 @@ Runner:
46
39
  - `./scripts/run-rules-tests.sh --limit 100`
47
40
  - `./scripts/run-rules-tests.sh --log /tmp/rules-tests.log`
48
41
 
49
- Generator:
50
-
51
- - `./scripts/generate-rules-tests.sh --target-new 100`
52
- - `./scripts/generate-rules-tests.sh --dir /tmp/rules-tests-work`
53
- - `./scripts/pack-rules-tests.sh --dir /tmp/rules-tests-work --chunks-dir ./rules-tests-chunks --chunk-size 100000`
54
-
55
- ## Repo Cleanup
56
-
57
- - `./repo-clean.sh`
58
- - `./repo-clean.sh --local-only`
59
-
60
- Use `keep/<name>` for any branch that should survive repo cleanup.
42
+ The checked-in corpus is `test-data/rules-regressions.jsonl.gz`. Its manifest records
43
+ the deterministic 10,000-case selection policy, source archive hashes, coverage, and
44
+ artifact hashes. The runner verifies the complete stream even when `--limit` executes
45
+ only a prefix.
61
46
 
62
47
  ## Publishing
63
48
 
64
- - Set the release version in `Cargo.toml` and `Cargo.lock`, then commit the complete release change set. `publish.sh` refuses a dirty worktree and no longer mutates the version after validation.
65
- - `./publish.sh`
66
- - Confirm public Pro routes through `frontier_pro_v10_bounded_tactical`.
67
- - Confirm `frontier_pro_v2_guarded` and `shipping_pro_search` remain available as the previous-production comparator and search-only baseline.
68
- - Run `cargo test`.
69
- - Run `cargo test --release --lib smart_automove_pro_matches_frontier_bounded_tactical_selector_on_release_fixture`.
70
- - Run `cargo test --release --lib automove_runtime_black_turn_eight_deadline_tail_probe -- --ignored --nocapture` to enforce the whole-call `700ms` ceiling.
71
- - Run `./scripts/check-automove-hygiene.sh`.
72
- - Run `./scripts/assert-release-package-surface.sh pkg/web pkg/node` after the Wasm packages are built.
73
- - Run `node ./scripts/assert-release-automove-route.cjs pkg/node/mons-rust.js` to verify the generated package routes public Pro through bounded tactical v10 on a fixture that differs from both retained v2 and shipping search.
74
- - Clean disposable experiment artifacts after validation with `./scripts/clean-experiment-artifacts.sh`.
49
+ - Set the release version in `Cargo.toml` and regenerate `Cargo.lock`, then commit the
50
+ complete release change set. Publishing requires a clean worktree.
51
+ - Run `./publish.sh --check-only` for the complete rules, Rust, release-gate, Wasm,
52
+ public-surface, cold-route, and npm-size validation without publishing.
53
+ - Run `./publish.sh` only after the check-only path passes and the release commit is clean.
package/mons-rust.d.ts CHANGED
@@ -10,54 +10,24 @@
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 AvailableMoveKind {
14
- MonMove = 0,
15
- ManaMove = 1,
16
- Action = 2,
17
- Potion = 3,
18
- }
19
- /**
20
- */
21
- export enum EventModelKind {
22
- MonMove = 0,
23
- ManaMove = 1,
24
- ManaScored = 2,
25
- MysticAction = 3,
26
- DemonAction = 4,
27
- DemonAdditionalStep = 5,
28
- SpiritTargetMove = 6,
29
- PickupBomb = 7,
30
- PickupPotion = 8,
31
- PickupMana = 9,
32
- MonFainted = 10,
33
- ManaDropped = 11,
34
- SupermanaBackToBase = 12,
35
- BombAttack = 13,
36
- MonAwake = 14,
37
- BombExplosion = 15,
38
- NextTurn = 16,
39
- GameOver = 17,
40
- Takeback = 18,
41
- UsePotion = 19,
13
+ export enum Color {
14
+ White = 0,
15
+ Black = 1,
42
16
  }
43
17
  /**
44
18
  */
45
- export enum SquareModelKind {
19
+ export enum ManaKind {
46
20
  Regular = 0,
47
- ConsumableBase = 1,
48
- SupermanaBase = 2,
49
- ManaBase = 3,
50
- ManaPool = 4,
51
- MonBase = 5,
21
+ Supermana = 1,
52
22
  }
53
23
  /**
54
24
  */
55
- export enum MonKind {
56
- Demon = 0,
57
- Drainer = 1,
58
- Angel = 2,
59
- Spirit = 3,
60
- Mystic = 4,
25
+ export enum ItemModelKind {
26
+ Mon = 0,
27
+ Mana = 1,
28
+ MonWithMana = 2,
29
+ MonWithConsumable = 3,
30
+ Consumable = 4,
61
31
  }
62
32
  /**
63
33
  */
@@ -74,25 +44,6 @@ export enum NextInputKind {
74
44
  }
75
45
  /**
76
46
  */
77
- export enum Consumable {
78
- Potion = 0,
79
- Bomb = 1,
80
- BombOrPotion = 2,
81
- }
82
- /**
83
- */
84
- export enum Color {
85
- White = 0,
86
- Black = 1,
87
- }
88
- /**
89
- */
90
- export enum ManaKind {
91
- Regular = 0,
92
- Supermana = 1,
93
- }
94
- /**
95
- */
96
47
  export enum Modifier {
97
48
  SelectPotion = 0,
98
49
  SelectBomb = 1,
@@ -100,23 +51,6 @@ export enum Modifier {
100
51
  }
101
52
  /**
102
53
  */
103
- export enum ItemModelKind {
104
- Mon = 0,
105
- Mana = 1,
106
- MonWithMana = 2,
107
- MonWithConsumable = 3,
108
- Consumable = 4,
109
- }
110
- /**
111
- */
112
- export enum OutputModelKind {
113
- InvalidInput = 0,
114
- LocationsToStartFrom = 1,
115
- NextInputOptions = 2,
116
- Events = 3,
117
- }
118
- /**
119
- */
120
54
  export enum GameVariant {
121
55
  Classic = 0,
122
56
  SwappedManaRows = 1,
@@ -133,6 +67,72 @@ export enum GameVariant {
133
67
  }
134
68
  /**
135
69
  */
70
+ export enum OutputModelKind {
71
+ InvalidInput = 0,
72
+ LocationsToStartFrom = 1,
73
+ NextInputOptions = 2,
74
+ Events = 3,
75
+ }
76
+ /**
77
+ */
78
+ export enum MonKind {
79
+ Demon = 0,
80
+ Drainer = 1,
81
+ Angel = 2,
82
+ Spirit = 3,
83
+ Mystic = 4,
84
+ }
85
+ /**
86
+ */
87
+ export enum SquareModelKind {
88
+ Regular = 0,
89
+ ConsumableBase = 1,
90
+ SupermanaBase = 2,
91
+ ManaBase = 3,
92
+ ManaPool = 4,
93
+ MonBase = 5,
94
+ }
95
+ /**
96
+ */
97
+ export enum EventModelKind {
98
+ MonMove = 0,
99
+ ManaMove = 1,
100
+ ManaScored = 2,
101
+ MysticAction = 3,
102
+ DemonAction = 4,
103
+ DemonAdditionalStep = 5,
104
+ SpiritTargetMove = 6,
105
+ PickupBomb = 7,
106
+ PickupPotion = 8,
107
+ PickupMana = 9,
108
+ MonFainted = 10,
109
+ ManaDropped = 11,
110
+ SupermanaBackToBase = 12,
111
+ BombAttack = 13,
112
+ MonAwake = 14,
113
+ BombExplosion = 15,
114
+ NextTurn = 16,
115
+ GameOver = 17,
116
+ Takeback = 18,
117
+ UsePotion = 19,
118
+ }
119
+ /**
120
+ */
121
+ export enum AvailableMoveKind {
122
+ MonMove = 0,
123
+ ManaMove = 1,
124
+ Action = 2,
125
+ Potion = 3,
126
+ }
127
+ /**
128
+ */
129
+ export enum Consumable {
130
+ Potion = 0,
131
+ Bomb = 1,
132
+ BombOrPotion = 2,
133
+ }
134
+ /**
135
+ */
136
136
  export class EventModel {
137
137
  free(): void;
138
138
  /**
package/mons-rust.js CHANGED
@@ -1,5 +1,5 @@
1
1
  let imports = {};
2
- imports['./snippets/mons-rust-2106594ecd9a3eb2/inline0.js'] = require('./snippets/mons-rust-2106594ecd9a3eb2/inline0.js');
2
+ imports['./snippets/mons-rust-cba9eedc04d5b215/inline0.js'] = require('./snippets/mons-rust-cba9eedc04d5b215/inline0.js');
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
4
  let wasm;
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
@@ -119,6 +119,37 @@ function getInt32Memory0() {
119
119
  }
120
120
  return cachedInt32Memory0;
121
121
  }
122
+ /**
123
+ * @param {string} fen_w
124
+ * @param {string} fen_b
125
+ * @param {string} flat_moves_string_w
126
+ * @param {string} flat_moves_string_b
127
+ * @returns {string}
128
+ */
129
+ module.exports.winner = function(fen_w, fen_b, flat_moves_string_w, flat_moves_string_b) {
130
+ let deferred5_0;
131
+ let deferred5_1;
132
+ try {
133
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
134
+ const ptr0 = passStringToWasm0(fen_w, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
135
+ const len0 = WASM_VECTOR_LEN;
136
+ const ptr1 = passStringToWasm0(fen_b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
137
+ const len1 = WASM_VECTOR_LEN;
138
+ const ptr2 = passStringToWasm0(flat_moves_string_w, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
139
+ const len2 = WASM_VECTOR_LEN;
140
+ const ptr3 = passStringToWasm0(flat_moves_string_b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
141
+ const len3 = WASM_VECTOR_LEN;
142
+ wasm.winner(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
143
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
144
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
145
+ deferred5_0 = r0;
146
+ deferred5_1 = r1;
147
+ return getStringFromWasm0(r0, r1);
148
+ } finally {
149
+ wasm.__wbindgen_add_to_stack_pointer(16);
150
+ wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
151
+ }
152
+ };
122
153
 
123
154
  let cachedUint32Memory0 = null;
124
155
 
@@ -161,37 +192,6 @@ function getArrayI32FromWasm0(ptr, len) {
161
192
  ptr = ptr >>> 0;
162
193
  return getInt32Memory0().subarray(ptr / 4, ptr / 4 + len);
163
194
  }
164
- /**
165
- * @param {string} fen_w
166
- * @param {string} fen_b
167
- * @param {string} flat_moves_string_w
168
- * @param {string} flat_moves_string_b
169
- * @returns {string}
170
- */
171
- module.exports.winner = function(fen_w, fen_b, flat_moves_string_w, flat_moves_string_b) {
172
- let deferred5_0;
173
- let deferred5_1;
174
- try {
175
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
176
- const ptr0 = passStringToWasm0(fen_w, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
177
- const len0 = WASM_VECTOR_LEN;
178
- const ptr1 = passStringToWasm0(fen_b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
179
- const len1 = WASM_VECTOR_LEN;
180
- const ptr2 = passStringToWasm0(flat_moves_string_w, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
181
- const len2 = WASM_VECTOR_LEN;
182
- const ptr3 = passStringToWasm0(flat_moves_string_b, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
183
- const len3 = WASM_VECTOR_LEN;
184
- wasm.winner(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
185
- var r0 = getInt32Memory0()[retptr / 4 + 0];
186
- var r1 = getInt32Memory0()[retptr / 4 + 1];
187
- deferred5_0 = r0;
188
- deferred5_1 = r1;
189
- return getStringFromWasm0(r0, r1);
190
- } finally {
191
- wasm.__wbindgen_add_to_stack_pointer(16);
192
- wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
193
- }
194
- };
195
195
 
196
196
  function handleError(f, args) {
197
197
  try {
@@ -202,40 +202,40 @@ function handleError(f, args) {
202
202
  }
203
203
  /**
204
204
  */
205
- module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
205
+ module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
206
206
  /**
207
207
  */
208
- 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", });
208
+ module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
209
209
  /**
210
210
  */
211
- 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", });
211
+ 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", });
212
212
  /**
213
213
  */
214
- 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", });
214
+ 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", });
215
215
  /**
216
216
  */
217
- 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", });
217
+ module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
218
218
  /**
219
219
  */
220
- module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
220
+ module.exports.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", });
221
221
  /**
222
222
  */
223
- module.exports.Color = Object.freeze({ White:0,"0":"White",Black:1,"1":"Black", });
223
+ module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
224
224
  /**
225
225
  */
226
- module.exports.ManaKind = Object.freeze({ Regular:0,"0":"Regular",Supermana:1,"1":"Supermana", });
226
+ 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", });
227
227
  /**
228
228
  */
229
- module.exports.Modifier = Object.freeze({ SelectPotion:0,"0":"SelectPotion",SelectBomb:1,"1":"SelectBomb",Cancel:2,"2":"Cancel", });
229
+ 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", });
230
230
  /**
231
231
  */
232
- 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", });
232
+ 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", });
233
233
  /**
234
234
  */
235
- module.exports.OutputModelKind = Object.freeze({ InvalidInput:0,"0":"InvalidInput",LocationsToStartFrom:1,"1":"LocationsToStartFrom",NextInputOptions:2,"2":"NextInputOptions",Events:3,"3":"Events", });
235
+ module.exports.AvailableMoveKind = Object.freeze({ MonMove:0,"0":"MonMove",ManaMove:1,"1":"ManaMove",Action:2,"2":"Action",Potion:3,"3":"Potion", });
236
236
  /**
237
237
  */
238
- module.exports.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", });
238
+ module.exports.Consumable = Object.freeze({ Potion:0,"0":"Potion",Bomb:1,"1":"Bomb",BombOrPotion:2,"2":"BombOrPotion", });
239
239
 
240
240
  const EventModelFinalization = (typeof FinalizationRegistry === 'undefined')
241
241
  ? { register: () => {}, unregister: () => {} }
@@ -1394,13 +1394,13 @@ class VerboseTrackingEntityModel {
1394
1394
  }
1395
1395
  module.exports.VerboseTrackingEntityModel = VerboseTrackingEntityModel;
1396
1396
 
1397
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
1398
- takeObject(arg0);
1397
+ module.exports.__wbg_location_unwrap = function(arg0) {
1398
+ const ret = Location.__unwrap(takeObject(arg0));
1399
+ return ret;
1399
1400
  };
1400
1401
 
1401
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
1402
- const ret = getStringFromWasm0(arg0, arg1);
1403
- return addHeapObject(ret);
1402
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
1403
+ takeObject(arg0);
1404
1404
  };
1405
1405
 
1406
1406
  module.exports.__wbg_eventmodel_new = function(arg0) {
@@ -1408,13 +1408,13 @@ module.exports.__wbg_eventmodel_new = function(arg0) {
1408
1408
  return addHeapObject(ret);
1409
1409
  };
1410
1410
 
1411
- module.exports.__wbg_location_new = function(arg0) {
1412
- const ret = Location.__wrap(arg0);
1411
+ module.exports.__wbg_nextinputmodel_new = function(arg0) {
1412
+ const ret = NextInputModel.__wrap(arg0);
1413
1413
  return addHeapObject(ret);
1414
1414
  };
1415
1415
 
1416
- module.exports.__wbg_nextinputmodel_new = function(arg0) {
1417
- const ret = NextInputModel.__wrap(arg0);
1416
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
1417
+ const ret = getStringFromWasm0(arg0, arg1);
1418
1418
  return addHeapObject(ret);
1419
1419
  };
1420
1420
 
@@ -1423,13 +1423,8 @@ module.exports.__wbg_verbosetrackingentitymodel_new = function(arg0) {
1423
1423
  return addHeapObject(ret);
1424
1424
  };
1425
1425
 
1426
- module.exports.__wbg_location_unwrap = function(arg0) {
1427
- const ret = Location.__unwrap(takeObject(arg0));
1428
- return ret;
1429
- };
1430
-
1431
- module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
1432
- const ret = getObject(arg0).crypto;
1426
+ module.exports.__wbg_location_new = function(arg0) {
1427
+ const ret = Location.__wrap(arg0);
1433
1428
  return addHeapObject(ret);
1434
1429
  };
1435
1430
 
@@ -1439,6 +1434,11 @@ module.exports.__wbindgen_is_object = function(arg0) {
1439
1434
  return ret;
1440
1435
  };
1441
1436
 
1437
+ module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
1438
+ const ret = getObject(arg0).crypto;
1439
+ return addHeapObject(ret);
1440
+ };
1441
+
1442
1442
  module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
1443
1443
  const ret = getObject(arg0).process;
1444
1444
  return addHeapObject(ret);
@@ -1464,41 +1464,62 @@ module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(
1464
1464
  return addHeapObject(ret);
1465
1465
  }, arguments) };
1466
1466
 
1467
- module.exports.__wbindgen_is_function = function(arg0) {
1468
- const ret = typeof(getObject(arg0)) === 'function';
1469
- return ret;
1470
- };
1471
-
1472
1467
  module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
1473
1468
  const ret = getObject(arg0).msCrypto;
1474
1469
  return addHeapObject(ret);
1475
1470
  };
1476
1471
 
1472
+ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
1473
+ getObject(arg0).getRandomValues(getObject(arg1));
1474
+ }, arguments) };
1475
+
1477
1476
  module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
1478
1477
  getObject(arg0).randomFillSync(takeObject(arg1));
1479
1478
  }, arguments) };
1480
1479
 
1481
- module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
1482
- getObject(arg0).getRandomValues(getObject(arg1));
1480
+ module.exports.__wbindgen_is_function = function(arg0) {
1481
+ const ret = typeof(getObject(arg0)) === 'function';
1482
+ return ret;
1483
+ };
1484
+
1485
+ module.exports.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
1486
+ const ret = self.self;
1487
+ return addHeapObject(ret);
1488
+ }, arguments) };
1489
+
1490
+ module.exports.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
1491
+ const ret = window.window;
1492
+ return addHeapObject(ret);
1493
+ }, arguments) };
1494
+
1495
+ module.exports.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
1496
+ const ret = globalThis.globalThis;
1497
+ return addHeapObject(ret);
1498
+ }, arguments) };
1499
+
1500
+ module.exports.__wbg_global_207b558942527489 = function() { return handleError(function () {
1501
+ const ret = global.global;
1502
+ return addHeapObject(ret);
1483
1503
  }, arguments) };
1484
1504
 
1505
+ module.exports.__wbindgen_is_undefined = function(arg0) {
1506
+ const ret = getObject(arg0) === undefined;
1507
+ return ret;
1508
+ };
1509
+
1485
1510
  module.exports.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
1486
1511
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1487
1512
  return addHeapObject(ret);
1488
1513
  };
1489
1514
 
1490
- module.exports.__wbg_new_63b92bc8671ed464 = function(arg0) {
1491
- const ret = new Uint8Array(getObject(arg0));
1515
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
1516
+ const ret = getObject(arg0);
1492
1517
  return addHeapObject(ret);
1493
1518
  };
1494
1519
 
1495
- module.exports.__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;
1520
+ module.exports.__wbg_new_63b92bc8671ed464 = function(arg0) {
1521
+ const ret = new Uint8Array(getObject(arg0));
1522
+ return addHeapObject(ret);
1502
1523
  };
1503
1524
 
1504
1525
  module.exports.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
@@ -1525,46 +1546,25 @@ module.exports.__wbg_subarray_a1f73cd4b5b42fe1 = function(arg0, arg1, arg2) {
1525
1546
  return addHeapObject(ret);
1526
1547
  };
1527
1548
 
1528
- module.exports.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
1529
- const ret = self.self;
1530
- return addHeapObject(ret);
1531
- }, arguments) };
1532
-
1533
- module.exports.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
1534
- const ret = window.window;
1535
- return addHeapObject(ret);
1536
- }, arguments) };
1537
-
1538
- module.exports.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
1539
- const ret = globalThis.globalThis;
1540
- return addHeapObject(ret);
1541
- }, arguments) };
1542
-
1543
- module.exports.__wbg_global_207b558942527489 = function() { return handleError(function () {
1544
- const ret = global.global;
1545
- return addHeapObject(ret);
1546
- }, arguments) };
1547
-
1548
- module.exports.__wbindgen_is_undefined = function(arg0) {
1549
- const ret = getObject(arg0) === undefined;
1550
- return ret;
1551
- };
1552
-
1553
1549
  module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
1554
1550
  const ret = getObject(arg0).call(getObject(arg1));
1555
1551
  return addHeapObject(ret);
1556
1552
  }, arguments) };
1557
1553
 
1558
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
1559
- const ret = getObject(arg0);
1560
- return addHeapObject(ret);
1561
- };
1562
-
1563
1554
  module.exports.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
1564
1555
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1565
1556
  return addHeapObject(ret);
1566
1557
  }, arguments) };
1567
1558
 
1559
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
1560
+ const obj = getObject(arg1);
1561
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1562
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1563
+ var len1 = WASM_VECTOR_LEN;
1564
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1565
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1566
+ };
1567
+
1568
1568
  module.exports.__wbindgen_memory = function() {
1569
1569
  const ret = wasm.memory;
1570
1570
  return addHeapObject(ret);
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.132",
4
+ "version": "0.1.134",
5
5
  "license": "CC0-1.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -10,8 +10,9 @@
10
10
  "files": [
11
11
  "mons-rust_bg.wasm",
12
12
  "mons-rust.js",
13
- "mons-rust.d.ts"
13
+ "mons-rust.d.ts",
14
+ "snippets"
14
15
  ],
15
16
  "main": "mons-rust.js",
16
17
  "types": "mons-rust.d.ts"
17
- }
18
+ }
@@ -0,0 +1 @@
1
+ export function automove_monotonic_now_ms() { return globalThis.performance.now(); }