Skip to content

Commit 3b92bc4

Browse files
fix: suppress dotenv debug logs
- Add debug: false to all loadDotenv calls - Reduces terminal noise on startup
1 parent a9f1e76 commit 3b92bc4

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackmemoryai/stackmemory",
3-
"version": "0.5.45",
3+
"version": "0.5.46",
44
"description": "Lossless memory runtime for AI coding tools - organizes context as a call stack instead of linear chat logs, with team collaboration and infinite retention",
55
"engines": {
66
"node": ">=20.0.0",

src/cli/claude-sm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import { config as loadDotenv } from 'dotenv';
9-
loadDotenv({ override: true });
9+
loadDotenv({ override: true, debug: false });
1010

1111
import { spawn, execSync, execFileSync } from 'child_process';
1212
import * as fs from 'fs';

src/cli/opencode-sm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import { config as loadDotenv } from 'dotenv';
9-
loadDotenv({ override: true });
9+
loadDotenv({ override: true, debug: false });
1010

1111
import { spawn, execSync, execFileSync } from 'child_process';
1212
import * as fs from 'fs';

src/hooks/sms-notify.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ const DEFAULT_CONFIG: SMSConfig = {
103103
};
104104

105105
export function loadSMSConfig(): SMSConfig {
106-
// Load .env files (project, home, global)
107-
loadDotenv({ path: join(process.cwd(), '.env') });
108-
loadDotenv({ path: join(process.cwd(), '.env.local') });
109-
loadDotenv({ path: join(homedir(), '.env') });
110-
loadDotenv({ path: join(homedir(), '.stackmemory', '.env') });
106+
// Load .env files (project, home, global) - suppress debug logs
107+
loadDotenv({ path: join(process.cwd(), '.env'), debug: false });
108+
loadDotenv({ path: join(process.cwd(), '.env.local'), debug: false });
109+
loadDotenv({ path: join(homedir(), '.env'), debug: false });
110+
loadDotenv({ path: join(homedir(), '.stackmemory', '.env'), debug: false });
111111

112112
try {
113113
if (existsSync(CONFIG_PATH)) {

0 commit comments

Comments
 (0)