seeds: add calculator.calculate (SemIf-chosen operator, spoken answer)
A local-arithmetic seed bounded to two operands and one operator. The operator is a SemIf choice over addition, subtraction, multiplication, division, exponents, squares, cubes, square roots, cube roots, fractions, and percentages; SemIf also picks the operands when the request writes more numbers than the operation consumes, and the body asks for missing numbers and resumes. Results are spelled out in words for the ear, with inexact results announced as "approximately ...". Pure local compute (`compute` transport, empty contract). Adds the `calculator` category description for navigation, the seed's hermetic test, a tune_navigation example, and README/AGENTS docs.
This commit is contained in:
1 parent
fc0beb5798
commit
e2cbf74797
9 files changed
+606
-3
No files matched your search
@@ -881,7 +881,13 @@ CLI, unit tests (24) + integration tests (2).
|
||||
`zoneinfo`), falling back to the host's own timezone when it is empty or
|
||||
unknown; `TimerService` formats due/fired times in that zone too. The nextcloud
|
||||
seeds derive "now" the same way, so a request time is parsed in the user's
|
||||
zone rather than the host's;
|
||||
zone rather than the host's; `calculator.calculate` is the local-arithmetic
|
||||
seed (`compute` transport, empty contract): bounded to two operands and one
|
||||
operator, the operator is a SemIf choice over addition/subtraction/
|
||||
multiplication/division/exponents/squares/cubes/square roots/cube roots/
|
||||
fractions/percentages, SemIf picks the operands when the request offers more
|
||||
numbers than the operator consumes, and the answer is spelled out in words for
|
||||
the ear (an inexact result is announced as "approximately ...");
|
||||
`tests/test_seed_skills.py` keeps them honest.
|
||||
- **Contract provenance.** Each authored body records the CODEGEN.md revision it
|
||||
was written against. `skill_contract_ref()` (`codegen.py`) returns
|
||||
|
||||
Reference in new issue
Block a user