arisa 2.1.4 → 2.1.5

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/bin/arisa.js +13 -13
  2. package/package.json +1 -1
package/bin/arisa.js CHANGED
@@ -568,7 +568,7 @@ if (isRoot()) {
568
568
  step(true, "Systemd service enabled (auto-starts on reboot)");
569
569
 
570
570
  process.stdout.write("\nStarting interactive setup as user arisa...\n\n");
571
- const su = spawnSync("su", ["-", "arisa", "-c", "arisa"], {
571
+ const su = spawnSync("su", ["-", "arisa", "-c", "/home/arisa/.bun/bin/arisa"], {
572
572
  stdio: "inherit",
573
573
  });
574
574
 
@@ -593,6 +593,15 @@ Arisa management:
593
593
  process.exit(0);
594
594
  }
595
595
 
596
+ // No args → systemd management
597
+ if (isDefaultInvocation) {
598
+ if (isSystemdActive()) {
599
+ process.exit(statusSystemdSystem());
600
+ } else {
601
+ process.exit(startSystemdSystem());
602
+ }
603
+ }
604
+
596
605
  switch (command) {
597
606
  case "start":
598
607
  process.exit(startSystemdSystem());
@@ -608,25 +617,16 @@ Arisa management:
608
617
  break;
609
618
  case "daemon":
610
619
  case "run": {
611
- // Run as arisa user in foreground
612
- const su = spawnSync("su", ["-", "arisa", "-c", "arisa"], {
620
+ // Explicit "arisa daemon/run" → foreground as arisa user
621
+ const su = spawnSync("su", ["-", "arisa", "-c", "/home/arisa/.bun/bin/arisa"], {
613
622
  stdio: "inherit",
614
623
  });
615
624
  process.exit(su.status ?? 1);
616
625
  }
617
- default: {
618
- // No args or unknown — start if not active, otherwise show status
619
- if (isDefaultInvocation) {
620
- if (isSystemdActive()) {
621
- process.exit(statusSystemdSystem());
622
- } else {
623
- process.exit(startSystemdSystem());
624
- }
625
- }
626
+ default:
626
627
  process.stderr.write(`Unknown command: ${command}\n\n`);
627
628
  printHelp();
628
629
  process.exit(1);
629
- }
630
630
  }
631
631
  }
632
632
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arisa",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "Arisa - dynamic agent runtime with daemon/core architecture that evolves through user interaction",
5
5
  "preferGlobal": true,
6
6
  "bin": {