v0.3.12

NandhaKishorM/layav0.3.12Sep 24, 2026by github-actions[bot]

Upgrading?

AI Summary

A feature-rich release focusing on router improvements, CLI enhancements, and the implementation of the hooks system.

Key Highlights

  • Enhanced the Router with predict_batch functionality and input grouping capabilities.
  • Added a --preset flag to the CLI for answering questions with specific presets.
  • Implemented BaseHook and process-wide default hooks for lifecycle management.

New Features

  • CLI presets for answering questions
  • Router predict_batch — route-then-group multi-state scoring
  • BaseHook and process-wide default hooks

Full Release Notes

## What's Changed
* refactor(agent): skip unused noul entropy calculation by @alpha912 in https://github.com/NandhaKishorM/laya/pull/293
* test(ci): run hook suites on Windows by @alpha912 in https://github.com/NandhaKishorM/laya/pull/291
* fix(router): blank/whitespace explicit lang falls through to detection by @Bruce-Yii in https://github.com/NandhaKishorM/laya/pull/292
* fix(serve): enforce MAX_BODY_BYTES when the client sends no Content-Length by @keemsisi in https://github.com/NandhaKishorM/laya/pull/296
* fix(benchmarks): two parity cells did not match the JSON they cite by @PerryLink in https://github.com/NandhaKishorM/laya/pull/299
* feat(cli): answer a question preset with --preset by @aashish254 in https://github.com/NandhaKishorM/laya/pull/303
* docs: add CONTRIBUTING, CODE_OF_CONDUCT, and issue/PR templates by @emiliano-go in https://github.com/NandhaKishorM/laya/pull/275
* docs: build the site navigation from docs/ by @maxfield-allison in https://github.com/NandhaKishorM/laya/pull/282
* docs: add a Python API reference generated from docstrings by @maxfield-allison in https://github.com/NandhaKishorM/laya/pull/283
* feat(router): predict_batch — route-then-group multi-state scoring (follow-up to #47, with consistency harness + benchmarks) by @bigdong89 in https://github.com/NandhaKishorM/laya/pull/166
* docs(benchmarks): align the laya-multilingual typed-decisions row with the committed JSON (#300) by @liwenjie200543 in https://github.com/NandhaKishorM/laya/pull/313
* feat(agent): group batch inputs by encoded length by @alpha912 in https://github.com/NandhaKishorM/laya/pull/294
* fix(router): run Router predict hooks for every request in predict_batch by @hemanthrayuduu in https://github.com/NandhaKishorM/laya/pull/289
* feat(hooks): BaseHook and process-wide default hooks by @emiliano-go in https://github.com/NandhaKishorM/laya/pull/276
* perf(agent): reuse the tokenized state across questions; autocast on MPS by @emiliano-go in https://github.com/NandhaKishorM/laya/pull/109
* fix(ts): route Banglish/Azerbaijani and mixed-script tickets like Python by @aashish254 in https://github.com/NandhaKishorM/laya/pull/307
* fix(ts): keep 'Thanks for the reply.' sentences in cleanEmailBody (Python parity) by @aashish254 in https://github.com/NandhaKishorM/laya/pull/301
* perf(ts): tokenize the state once per systemOne call, not once per question by @aashish254 in https://github.com/NandhaKishorM/laya/pull/309
* feat(ts): port the Python hooks lifecycle to laya-ts by @aashish254 in https://github.com/NandhaKishorM/laya/pull/308
* ci(ts): verify packed package on Node 20 and 22 by @NikitaaRamesh in https://github.com/NandhaKishorM/laya/pull/278
* feat: add lang_temperatures and fix shadowing bug by @SaiDheeraj-19 in https://github.com/NandhaKishorM/laya/pull/258
* feat(structured): schema-driven decisions via decide() by @emiliano-go in https://github.com/NandhaKishorM/laya/pull/280
* fix: reject targets longer than their own marker count in mixed batches by @aashish254 in https://github.com/NandhaKishorM/laya/pull/312
* feat(agent): report the calibrated confidence alongside the existing one by @Suzzt in https://github.com/NandhaKishorM/laya/pull/126
* docs: add stuntd to Community Tools by @bladedevoff in https://github.com/NandhaKishorM/laya/pull/271

## New Contributors
* @keemsisi made their first contribution in https://github.com/NandhaKishorM/laya/pull/296
* @bigdong89 made their first contribution in https://github.com/NandhaKishorM/laya/pull/166
* @hemanthrayuduu made their first contribution in https://github.com/NandhaKishorM/laya/pull/289
* @NikitaaRamesh made their first contribution in https://github.com/NandhaKishorM/laya/pull/278
* @SaiDheeraj-19 made their first contribution in https://github.com/NandhaKishorM/laya/pull/258
* @Suzzt made their first contribution in https://github.com/NandhaKishorM/laya/pull/126

**Full Changelog**: https://github.com/NandhaKishorM/laya/compare/v0.3.11...v0.3.12

Related Repositories