@stage5/lumine 0.2.65 → 0.2.67
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 +22 -3
- package/lib/admin-runtime-logs.js +786 -0
- package/lib/admin-workflows.js +350 -59
- package/lib/admin.js +586 -47
- package/lib/commands.js +46 -5
- package/lib/sponsor-duty.js +479 -28
- package/package.json +1 -1
- package/sdk/BUILD_SDK_INDEX.md +11 -7
- package/sdk/LUMINE_ADMIN.md +358 -88
package/sdk/BUILD_SDK_INDEX.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Build SDK Index
|
|
2
2
|
|
|
3
|
-
Version: 1.
|
|
4
|
-
Updated: 2026-09-
|
|
5
|
-
Generated: 2026-09-
|
|
3
|
+
Version: 1.39.0
|
|
4
|
+
Updated: 2026-09-03
|
|
5
|
+
Generated: 2026-09-03T04:17:20.106Z
|
|
6
6
|
|
|
7
7
|
## Notes
|
|
8
8
|
- This SDK is injected into Build iframes via the Build preview/runtime.
|
|
@@ -256,8 +256,8 @@ files:read, media:read, media:write, live:read, live:write, user:read, users:rea
|
|
|
256
256
|
- Unsubscribe the current viewer from Build notifications for a subject's new pages or updates.
|
|
257
257
|
|
|
258
258
|
### Twinkle.chess
|
|
259
|
-
- async bestMove({ fen, depth?, skillLevel?, maxTimeMs?, timeoutMs? }) | scopes: none
|
|
260
|
-
- Returns: { success, move, bestMove, from, to, promotion, evaluation, depth, mate, error, engine }
|
|
259
|
+
- async bestMove({ fen, depth?, skillLevel?, maxTimeMs?, timeoutMs?, multiPv? }) | scopes: none
|
|
260
|
+
- Returns: { success, move, bestMove, from, to, promotion, evaluation, depth, mate, lines: [{ rank, move, from, to, promotion, evaluation, mate, depth, pv }], error, engine }
|
|
261
261
|
- Ask the parent-hosted Stockfish engine for the best move from a FEN position.
|
|
262
262
|
- Always available in the build iframe.
|
|
263
263
|
- Stockfish runs in a parent-managed worker with bounded depth, timeout, and serialized requests.
|
|
@@ -265,14 +265,18 @@ files:read, media:read, media:write, live:read, live:write, user:read, users:rea
|
|
|
265
265
|
- skillLevel 20 defaults to the strongest bounded search budget.
|
|
266
266
|
- maxTimeMs and timeoutMs are clamped between 500 and 60000 milliseconds.
|
|
267
267
|
- This returns engine analysis only. Use app code or a chess rules library to validate legal moves, manage board state, detect game over, and render the board.
|
|
268
|
+
- multiPv (1-10, default 1) returns the top N moves as lines, ranked best first, all from the same search (a movetime stop can leave a line one iteration behind; keep the engine's rank order rather than re-sorting by score). Compare line evaluations against each other to grade a candidate move; do not compare evaluations from separate searches of different positions.
|
|
269
|
+
- evaluation and line evaluations are centipawns from the side to move's point of view; mate is a signed mate distance (positive = side to move mates).
|
|
268
270
|
- Example: const result = await Twinkle.chess.bestMove({ fen: game.fen(), skillLevel: 8, maxTimeMs: 1000 });
|
|
269
271
|
if (result.success) game.move({ from: result.from, to: result.to, promotion: result.promotion || undefined });
|
|
270
|
-
- async evaluate({ fen, depth?, skillLevel?, maxTimeMs?, timeoutMs? }) | scopes: none
|
|
271
|
-
- Returns: { success, move, bestMove, from, to, promotion, evaluation, depth, mate, error, engine }
|
|
272
|
+
- async evaluate({ fen, depth?, skillLevel?, maxTimeMs?, timeoutMs?, multiPv? }) | scopes: none
|
|
273
|
+
- Returns: { success, move, bestMove, from, to, promotion, evaluation, depth, mate, lines: [{ rank, move, from, to, promotion, evaluation, mate, depth, pv }], error, engine }
|
|
272
274
|
- Analyze a FEN position and return Stockfish's current best move plus centipawn or mate evaluation.
|
|
273
275
|
- Always available in the build iframe.
|
|
274
276
|
- evaluation is the Stockfish centipawn score from the engine output when available; mate is the mate distance when Stockfish reports one.
|
|
275
277
|
- Do not call this from a render loop, animation loop, or high-frequency polling path.
|
|
278
|
+
- multiPv (1-10, default 1) returns the top N moves as lines, ranked best first, all from the same search (a movetime stop can leave a line one iteration behind; keep the engine's rank order rather than re-sorting by score). Compare line evaluations against each other to grade a candidate move; do not compare evaluations from separate searches of different positions.
|
|
279
|
+
- evaluation and line evaluations are centipawns from the side to move's point of view; mate is a signed mate distance (positive = side to move mates).
|
|
276
280
|
- Example: const analysis = await Twinkle.chess.evaluate({ fen: game.fen(), depth: 12 });
|
|
277
281
|
console.log(analysis.bestMove, analysis.evaluation, analysis.mate);
|
|
278
282
|
|