refactor: remove DEFAULT_LIST_LIMIT from core, add changeset

- Core layer: limit=undefined means no limit (return all)
- CLI layer: default limit 100 in parseListOptions()
- Remove Number.MAX_SAFE_INTEGER sentinel usages
- Add changeset for breaking list return type change

Addresses review feedback from 小墨
This commit is contained in:
2026-06-01 15:08:44 +00:00
parent ed19466a3b
commit 190ae672a7
9 changed files with 40 additions and 33 deletions
+7
View File
@@ -0,0 +1,7 @@
---
"@ocas/core": minor
"@ocas/fs": minor
"@ocas/cli": minor
---
**Breaking:** `listByType()`, `listMeta()`, `listSchemas()` now return `ListEntry[]` (with `hash`, `created`, `updated`) instead of `Hash[]`. All list commands support `--sort`, `--limit`, `--offset`, `--desc` flags. `var list` supports the same pagination options via SQL.