@inceptionstack/roundhouse 0.5.0 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inceptionstack/roundhouse",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "Multi-platform chat gateway that routes messages through a configured AI agent",
6
6
  "license": "MIT",
package/src/cli/cli.ts CHANGED
@@ -74,7 +74,7 @@ async function cmdStart() {
74
74
 
75
75
  console.log("No systemd service found. Running in foreground (use Ctrl+C to stop)...");
76
76
  if (process.platform !== "darwin") {
77
- console.log(" Tip: run 'roundhouse install' to set up the systemd daemon.\n");
77
+ console.log(" Tip: run 'roundhouse setup --telegram' to install as systemd daemon.\n");
78
78
  } else {
79
79
  console.log("");
80
80
  }
@@ -166,19 +166,23 @@ async function cmdUpdate() {
166
166
  }
167
167
 
168
168
  console.log(`[roundhouse] Updated to v${result.latestVersion}`);
169
- console.log("\n[roundhouse] Restarting daemon...");
170
- try {
171
- systemctl("restart", "Updated and restarted.");
172
- } catch {
173
- console.log(" ⚠️ Daemon not running. Start with: roundhouse install");
169
+
170
+ if (process.platform === "darwin" || !isServiceInstalled()) {
171
+ console.log("\n ✅ Update complete. Restart with: roundhouse start");
172
+ } else {
173
+ console.log("\n[roundhouse] Restarting daemon...");
174
+ try {
175
+ systemctl("restart", "Updated and restarted.");
176
+ } catch {
177
+ console.log(" ⚠️ Could not restart. Run: roundhouse start");
178
+ }
174
179
  }
175
180
  }
176
181
 
177
182
  async function cmdStatus() {
178
183
  if (!isServiceActive()) {
179
184
  console.log("\n ❌ Roundhouse is not running.\n");
180
- console.log(" Install with: roundhouse install");
181
- console.log(" Or start foreground: roundhouse start\n");
185
+ console.log(" Start with: roundhouse start\n");
182
186
  return;
183
187
  }
184
188
 
@@ -47,7 +47,7 @@ export const configChecks: DoctorCheck[] = [
47
47
  details: [`${ctx.configPath} does not exist`],
48
48
  fix: {
49
49
  description: "Create default config",
50
- command: `roundhouse install`,
50
+ command: `roundhouse setup --telegram`,
51
51
  run: async () => {
52
52
  const configDir = dirname(ctx.configPath);
53
53
  await mkdir(configDir, { recursive: true });
@@ -23,7 +23,7 @@ export const systemdChecks: DoctorCheck[] = [
23
23
  id: "systemd-unit", category: "systemd", name: "Service unit",
24
24
  status: result ? "pass" : "warn",
25
25
  summary: result ? "installed" : "not installed",
26
- details: !result ? ["Run: roundhouse install"] : undefined,
26
+ details: !result ? ["Run: roundhouse setup --telegram"] : undefined,
27
27
  };
28
28
  },
29
29
  },
package/src/cli/setup.ts CHANGED
@@ -853,7 +853,7 @@ async function stepInstallSystemd(opts: SetupOptions): Promise<void> {
853
853
  if (!hasSudoAccess()) {
854
854
  warn("No passwordless sudo — cannot install systemd service");
855
855
  log(" Run manually: roundhouse start");
856
- log(" Or install with: sudo roundhouse install");
856
+ log(" Or install with: roundhouse setup --telegram");
857
857
  return;
858
858
  }
859
859