niahere 0.2.36 → 0.2.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niahere",
3
- "version": "0.2.36",
3
+ "version": "0.2.37",
4
4
  "description": "A personal AI assistant daemon — scheduled jobs, chat across Telegram and Slack, persona system, and visual identity.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -44,7 +44,10 @@ function buildPlist(): string {
44
44
  <key>RunAtLoad</key>
45
45
  <true/>
46
46
  <key>KeepAlive</key>
47
- <true/>
47
+ <dict>
48
+ <key>SuccessfulExit</key>
49
+ <false/>
50
+ </dict>
48
51
  <key>StandardOutPath</key>
49
52
  <string>${paths.daemonLog}</string>
50
53
  <key>StandardErrorPath</key>
@@ -155,8 +155,8 @@ export async function runDaemon(): Promise<void> {
155
155
  if (existingPid !== null && existingPid !== process.pid) {
156
156
  try {
157
157
  process.kill(existingPid, 0); // Check if alive
158
- log.warn({ existingPid, myPid: process.pid }, "another daemon is already running, exiting");
159
- process.exit(1);
158
+ log.debug({ existingPid, myPid: process.pid }, "another daemon is already running, exiting");
159
+ process.exit(0);
160
160
  } catch {
161
161
  // Dead PID in pidfile — safe to take over
162
162
  }