claude-mem-lite 2.68.0 → 2.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mem-cli.mjs
CHANGED
|
@@ -378,7 +378,12 @@ function cmdRecent(db, args) {
|
|
|
378
378
|
if (rawArg !== undefined && !isValid) {
|
|
379
379
|
process.stderr.write(`[mem] Invalid count "${rawArg}" (must be a positive integer); using default 10\n`);
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
// Positional [N] wins for backward-compat; --limit is sibling-parity alias
|
|
382
|
+
// (search/recall/browse/stats all accept --limit). Pre-2.69 `recent --limit N`
|
|
383
|
+
// was silently ignored — surprising users extrapolating from siblings.
|
|
384
|
+
const limit = isValid
|
|
385
|
+
? rawLimit
|
|
386
|
+
: parseIntFlag(flags.limit, { name: '--limit', defaultValue: 10, max: 1000 });
|
|
382
387
|
const project = flags.project ? resolveProject(db, flags.project) : inferProject();
|
|
383
388
|
const jsonOutput = flags.json === true || flags.json === 'true';
|
|
384
389
|
|
|
@@ -2137,6 +2142,7 @@ Commands:
|
|
|
2137
2142
|
--json Output as JSON: {query,total,returned,offset,limit,results:[…]}
|
|
2138
2143
|
|
|
2139
2144
|
recent [N] Show N most recent observations (default 10)
|
|
2145
|
+
--limit N Sibling-parity alias for [N] (max 1000)
|
|
2140
2146
|
--project P Filter by project
|
|
2141
2147
|
--json Output as JSON: {project,limit,total,results:[…]}
|
|
2142
2148
|
|