Repository navigation
Commit 61f9ff0
committed
v1.0.5 — base-unit convenience fields across all output methods
toRawDict(), toDict(), pretty() and describe() now expose canonical
base-unit fields so callers never need to handle unit conversion:
weight mg/g/kg → measure_gr / measure_available_gr
volume ml/cl/L/m³ → measure_ml / measure_available_ml
size mm/cm/m → measure_mm / measure_available_mm
area m² → measure_mm2 / measure_available_mm2
Already-canonical units (g / ml / mm) produce no redundant field.
pretty() shows "(= 750 g)" inline; describe() appends
"— 750 g available, 1000 g total" to the Quantity sentence.
README and llms.txt updated accordingly.1 parent c93fe3c commit 61f9ff0
4 files changed
Lines changed: 52 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
264 | 267 | | |
| 268 | + | |
265 | 269 | | |
| 270 | + | |
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| 218 | + | |
212 | 219 | | |
| 220 | + | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
950 | 968 | | |
951 | 969 | | |
952 | 970 | | |
| |||
1384 | 1402 | | |
1385 | 1403 | | |
1386 | 1404 | | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
1387 | 1417 | | |
1388 | 1418 | | |
1389 | 1419 | | |
1390 | | - | |
| 1420 | + | |
1391 | 1421 | | |
1392 | 1422 | | |
1393 | 1423 | | |
| |||
1475 | 1505 | | |
1476 | 1506 | | |
1477 | 1507 | | |
1478 | | - | |
1479 | | - | |
| 1508 | + | |
| 1509 | + | |
1480 | 1510 | | |
1481 | 1511 | | |
1482 | 1512 | | |
| |||
0 commit comments