kaya
kaya copied to clipboard
Play, study, and analyze Go — free & open-source app with AI analysis and board recognition from photos
HI! I am the author of [HEN](https://github.com/hemme/hen-spec), a new serialization format specifically designed to represent static positions in Go (similar to how [FEN](https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation) works for Chess). I believe this format...
## Problem or Motivation As a user, I would like to be able to play against the AI model easily. Under "new game" I would like the ability to designate...
Two immutability leaks in `Draft`, both reproduced by the reviewer against the current code. **1. `removeNode` only invalidates the removed id** (`packages/gametree/src/draft.ts:153`), not its descendants: ```ts t1 = tree with...
`AnalysisQueue.runBatch` passes `signal: batch.controller.signal` (`packages/ai-engine/src/queue.ts:376`), but neither `OnnxEngine.analyzeBatch` (`onnx-engine.ts:319`, chunk loop at `:399`) nor `TauriEngine.analyzeBatch` (`tauri-engine.ts:318`) ever reads it. **Scenario.** Start a full-game analysis on a 300-move game (`numVisits ===...
Two smaller things found in the same review pass. **Batch paths ignore `skipCache`.** `onnx-engine.ts:350`, `tauri-engine.ts:350` and `pytorch-tauri-engine.ts:259` consult `this.config.enableCache` and never look at `options.skipCache`, which `queue.ts:377` sets explicitly. A full-game...
**Non-square boards silently lose moves.** `packages/sgf/src/parser.ts:431` and `packages/game-library/src/utils.ts:53` both do `parseInt(data.SZ[0], 10)`, so `SZ[9:13]` becomes `9`. `GameInfo.boardSize` is a single number, so `GoBoard.fromDimensions(9)` builds a 9x9 board even though `GoBoard`...
`packages/ui/src/components/board/gameboard-hooks.ts:144-152`: ```ts const nodeBefore = currentNode; if (isAnalyzingRef.current) await waitForCurrentAnalysis(); if (currentNode !== nodeBefore) return; // both read the same captured binding ``` `currentNode` is a render-scope constant, so `currentNode...
`packages/ui/src/components/ui/OverflowMenu.tsx:55-125` takes `pinned` as a prop, and both call sites pass an array literal — `GameBoardActionBar.tsx:171` and `HeaderFileControls.tsx:184` — so `computeOverflow` gets a new identity on every parent render. The...
`apps/desktop/src/AppContent.tsx` is 190 lines because its state and wiring were extracted into `apps/desktop/src/useAppContentState.ts` (265 lines). `apps/web/src/AppContent.tsx` never got the same treatment and sits at 368 lines, duplicating a good part...
Two holes found while reviewing test coverage. **`packages/sgf/tests/test-sgf.ts` has no assertions.** It is a `console.log` script, so it passes no matter what the parser does. Everything in #156 lives in...