@onimaxxing/sussy-seeds-mcp 0.1.6 → 0.2.0
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 +6 -1
- package/dist/index.js +97366 -329
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -90,7 +90,12 @@ Streams `notifications/progress` when the client sends `_meta.progressToken`. Ca
|
|
|
90
90
|
- `scanUntil({coord, spec, targetHits, opts?})`: stops at N matches.
|
|
91
91
|
- `scanSeeds({coord, spec, seeds})`: one row per input seed.
|
|
92
92
|
|
|
93
|
-
`spec.preHook` and `spec.postHook` accept raw JS
|
|
93
|
+
`spec.preHook` and `spec.postHook` accept raw JS and are async-first (since 0.2.0):
|
|
94
|
+
|
|
95
|
+
- Top-level `await worldgen()` works in both hooks; an async preHook's `return { pass: false }` gates the seed, and a rejection (e.g. a gen-failure seed) drops the seed instead of crashing anything.
|
|
96
|
+
- Put cheap summary checks (`hasTrait(summary, findHomeIdx(summary), 'GeoActive')`) before the first `await` so rejected seeds never pay the ~350ms worldgen cost.
|
|
97
|
+
- `scratch` is a per-seed `{}` shared by both hooks: compute in the preHook, then set `score = scratch.whatever` in the postHook to rank results through the normal score channel.
|
|
98
|
+
- Reserved-identifier guard rejects sources that shadow the Builder emit's bindings.
|
|
94
99
|
|
|
95
100
|
### Inspection
|
|
96
101
|
|