INVENTORY_LIMIT (db/inventory-bounds.ts)

libredb-studio · src/lib/db/inventory-bounds.ts · typescript · MIT
database

* How much of a database ONE inventory read may take, wherever that read is issued from (#789). Three readers, one owner. `POST /api/db/objects/inventory` bounds the object browser's read with these, and `readObjectInventoryForGrounding()` in `src/lib/agent/tools.ts` bounds a run

// Source: https://github.com/libredb/libredb-studio | License: MIT | Copyright 2025 SEKOYA GRUP BİLİŞİM VE TEKNOLOJİ LİMİTED ŞİRKETİ
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * How much of a database ONE inventory read may take, wherever that read is issued from (#789).
 *
 * Three readers, one owner. `POST /api/db/objects/inventory` bounds the object browser's read
 * with these, and `readObjectInventoryForGrounding()` in `src/lib/agent/tools.ts` bounds a
 * run's grounding walk with them; both report a bound with the same sentence, so a reader who
 * meets "inventory limit reached" in the agent rail and in the object browser meets one fact.
 * `POST /api/db/objects/search` refuses, before any listing, a search whose container and kind
 * pairs exceed `INVENTO

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key