tawasuyu

tawasuyu/nakui

> Excel-style reactive engine, on solid principles — exact Decimal, topological cascade, WAL, time-travel — in Rust, with a Llimphi UI.

Rust 82Markdown 14JSON 12TOML 101471 Definiciones

⎇ 7041e0499f8449ae8d7bba2a65695d82cef05a9e 01_yachay/nakui/modules/inventory/nsmc.json JSON · 26 líneas · 808 B Historia crudo

feat: nakui standalone — front-door ERP/Hoja/Grafo sobre Llimphi 7041e0499 · Sergio ·

1{
2  "module": "inventory",
3  "schemas": ["schema.ncl"],
4  "morphisms": [
5    {
6      "name": "transferir_stock",
7      "inputs": [
8        { "role": "source", "entity": "Stock" },
9        { "role": "dest", "entity": "Stock" }
10      ],
11      "reads": ["source.cantidad", "source.sku_id", "dest.cantidad", "dest.sku_id"],
12      "writes": ["source.cantidad", "dest.cantidad", "MovimientoStock"],
13      "invariants": {
14        "conserve": [{ "entity": "Stock", "field": "cantidad", "group_by": "sku_id" }]
15      },
16      "script": "scripts/transferir_stock.rhai"
17    },
18    {
19      "name": "recibir_stock",
20      "inputs": [{ "role": "stock", "entity": "Stock" }],
21      "reads": ["stock.cantidad"],
22      "writes": ["stock.cantidad", "MovimientoStock"],
23      "script": "scripts/recibir_stock.rhai"
24    }
25  ]
26}