cogpit-memory 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2215,8 +2215,9 @@ Commands:
2215
2215
  `);
2216
2216
  }
2217
2217
  var isBunCompiled = false;
2218
- var isScript = process.argv[1]?.endsWith("/cli.ts") || process.argv[1]?.endsWith("/cli.js") || process.argv[1]?.endsWith("/cli.cjs");
2219
- if (isBunCompiled || isScript) {
2218
+ var isNodeScript = process.argv[1]?.endsWith("/cli.ts") || process.argv[1]?.endsWith("/cli.js");
2219
+ var isCjsMain = typeof require !== "undefined" && typeof module !== "undefined" && require.main === module;
2220
+ if (isBunCompiled || isNodeScript || isCjsMain) {
2220
2221
  main().catch((err) => {
2221
2222
  console.error(JSON.stringify({ error: String(err) }));
2222
2223
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogpit-memory",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI tool for Claude Code session introspection — search, browse, and drill into past sessions",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./src/index.ts",