@hasna/mementos 0.14.78 → 0.14.80

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.
@@ -1 +1 @@
1
- {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+BzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6V9D"}
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+BzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmW9D"}
package/dist/cli/index.js CHANGED
@@ -63996,11 +63996,12 @@ function registerProjectCommands(program2) {
63996
63996
  const allProjects = listProjects();
63997
63997
  const limit = positiveIntOrDefault(opts.limit, DEFAULT_COMPACT_LIMIT);
63998
63998
  const offset = cursorOrOffset(opts.cursor, opts.offset) ?? 0;
63999
- const projects = globalOpts.json ? allProjects : allProjects.slice(offset, offset + limit + 1);
63999
+ const explicitPagination = opts.limit !== undefined || opts.cursor !== undefined || opts.offset !== undefined;
64000
+ const projects = globalOpts.json ? explicitPagination ? allProjects.slice(offset, offset + limit) : allProjects : allProjects.slice(offset, offset + limit + 1);
64000
64001
  const hasMore = !globalOpts.json && projects.length > limit;
64001
64002
  const displayProjects = hasMore ? projects.slice(0, limit) : projects;
64002
64003
  if (globalOpts.json) {
64003
- outputJson(allProjects);
64004
+ outputJson(projects);
64004
64005
  return;
64005
64006
  }
64006
64007
  if (displayProjects.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mementos",
3
- "version": "0.14.78",
3
+ "version": "0.14.80",
4
4
  "description": "Universal memory system for AI agents - CLI + MCP server + library API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -108,5 +108,5 @@
108
108
  "sigstore": "5.0.0",
109
109
  "typescript": "^5.7.3"
110
110
  },
111
- "gitHead": "668f1d778394c027d56be9503cdec8f7fd99c3d2"
111
+ "gitHead": "a45d90c4a854aae12d57168ca31897213dbfca58"
112
112
  }