feat: add sorting, pagination, and timestamps to list commands #28

Merged
xiaomo merged 3 commits from fix/27-list-sort-pagination into main 2026-06-01 15:09:52 +00:00

3 Commits

Author SHA1 Message Date
xiaoju 190ae672a7 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 小墨
2026-06-01 15:08:44 +00:00
xiaoju ed19466a3b docs: add sort/pagination flags to cli card 2026-06-01 14:49:30 +00:00
xiaoju 92a024fc1c feat: add sorting, pagination, and timestamps to list commands
Add --sort, --limit, --offset, --desc flags to `list --type`, `list-meta`,
`list-schema`, and `var list`. Change Store.listByType to return
{hash, created, updated}[] and extend VariableStore.list with the same
sort/pagination params.

Fixes #27
2026-06-01 14:41:25 +00:00