Release v3.6.1
Published from npm package build Source: https://github.com/thedotmack/claude-mem-source
This commit is contained in:
Vendored
+201
-212
File diff suppressed because one or more lines are too long
@@ -17,10 +17,12 @@ import {
|
|||||||
debugLog
|
debugLog
|
||||||
} from './shared/hook-helpers.js';
|
} from './shared/hook-helpers.js';
|
||||||
|
|
||||||
// Set up stdin immediately before any async operations
|
|
||||||
|
// Set up stdin immediately
|
||||||
process.stdin.setEncoding('utf8');
|
process.stdin.setEncoding('utf8');
|
||||||
process.stdin.resume(); // Explicitly enter flowing mode to prevent data loss
|
process.stdin.resume(); // Explicitly enter flowing mode to prevent data loss
|
||||||
|
|
||||||
|
|
||||||
// Read input from stdin
|
// Read input from stdin
|
||||||
let input = '';
|
let input = '';
|
||||||
process.stdin.on('data', chunk => {
|
process.stdin.on('data', chunk => {
|
||||||
@@ -28,6 +30,7 @@ process.stdin.on('data', chunk => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
process.stdin.on('end', async () => {
|
process.stdin.on('end', async () => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Load CLI command inside try-catch to handle config errors properly
|
// Load CLI command inside try-catch to handle config errors properly
|
||||||
const cliCommand = loadCliCommand();
|
const cliCommand = loadCliCommand();
|
||||||
|
|||||||
@@ -40,6 +40,14 @@ export function getLogsDir() {
|
|||||||
return process.env.CLAUDE_MEM_LOGS_DIR || join(getDataDir(), 'logs');
|
return process.env.CLAUDE_MEM_LOGS_DIR || join(getDataDir(), 'logs');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the compact flag file path
|
||||||
|
* @returns {string} Compact flag file path
|
||||||
|
*/
|
||||||
|
export function getCompactFlagPath() {
|
||||||
|
return join(getDataDir(), '.compact-running');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all common paths used by hooks
|
* Gets all common paths used by hooks
|
||||||
* @returns {Object} Object containing all common paths
|
* @returns {Object} Object containing all common paths
|
||||||
@@ -49,6 +57,7 @@ export function getPaths() {
|
|||||||
dataDir: getDataDir(),
|
dataDir: getDataDir(),
|
||||||
settingsPath: getSettingsPath(),
|
settingsPath: getSettingsPath(),
|
||||||
archivesDir: getArchivesDir(),
|
archivesDir: getArchivesDir(),
|
||||||
logsDir: getLogsDir()
|
logsDir: getLogsDir(),
|
||||||
|
compactFlagPath: getCompactFlagPath()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "claude-mem",
|
"name": "claude-mem",
|
||||||
"version": "3.6.0",
|
"version": "3.6.1",
|
||||||
"description": "Memory compression system for Claude Code - persist context across sessions",
|
"description": "Memory compression system for Claude Code - persist context across sessions",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"claude",
|
"claude",
|
||||||
|
|||||||
Reference in New Issue
Block a user