@inceptionstack/roundhouse 0.3.10 → 0.3.11

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.3.10",
3
+ "version": "0.3.11",
4
4
  "type": "module",
5
5
  "description": "Multi-platform chat gateway that routes messages through a configured AI agent",
6
6
  "license": "MIT",
@@ -12,18 +12,28 @@ export const agentChecks: DoctorCheck[] = [
12
12
  {
13
13
  id: "pi-sdk", category: "agent", name: "Pi SDK",
14
14
  async run() {
15
+ const PI_PKG = join("@mariozechner", "pi-coding-agent", "package.json");
16
+ const searchPaths = [
17
+ join(process.cwd(), "node_modules", PI_PKG),
18
+ ];
19
+ // Also check global npm root
15
20
  try {
16
- const pkgPath = join(process.cwd(), "node_modules", "@mariozechner", "pi-coding-agent", "package.json");
17
- const raw = await readFile(pkgPath, "utf8");
18
- const ver = JSON.parse(raw).version;
19
- return { id: "pi-sdk", category: "agent", name: "Pi SDK", status: "pass", summary: `v${ver}` };
20
- } catch {
21
- return {
22
- id: "pi-sdk", category: "agent", name: "Pi SDK", status: "fail", summary: "not found",
21
+ const { execFileSync } = await import("node:child_process");
22
+ const globalRoot = execFileSync("npm", ["root", "-g"], { encoding: "utf8" }).trim();
23
+ searchPaths.push(join(globalRoot, PI_PKG));
24
+ } catch {}
25
+ for (const pkgPath of searchPaths) {
26
+ try {
27
+ const raw = await readFile(pkgPath, "utf8");
28
+ const ver = JSON.parse(raw).version;
29
+ return { id: "pi-sdk", category: "agent", name: "Pi SDK", status: "pass" as const, summary: `v${ver}` };
30
+ } catch {}
31
+ }
32
+ return {
33
+ id: "pi-sdk", category: "agent", name: "Pi SDK", status: "fail" as const, summary: "not found",
23
34
  details: ["@mariozechner/pi-coding-agent not installed"],
24
35
  fix: { description: "Install pi SDK", command: "npm install @mariozechner/pi-coding-agent" },
25
36
  };
26
- }
27
37
  },
28
38
  },
29
39
 
package/src/cli/setup.ts CHANGED
@@ -181,7 +181,7 @@ export function parseSetupArgs(argv: string[]): SetupOptions {
181
181
  }
182
182
 
183
183
  // Validate
184
- if (!opts.botToken) {
184
+ if (!opts.botToken && !opts.dryRun) {
185
185
  throw new Error(
186
186
  "Bot token required. Provide via:\n" +
187
187
  " TELEGRAM_BOT_TOKEN=... roundhouse setup --user USERNAME\n" +
@@ -451,7 +451,11 @@ async function stepInstallPackages(opts: SetupOptions): Promise<void> {
451
451
  }
452
452
 
453
453
  async function stepStoreSecrets(opts: SetupOptions, botInfo: BotInfo): Promise<void> {
454
- if (!opts.psst) return;
454
+ if (!opts.psst) {
455
+ step("⑥", "Storing secrets...");
456
+ ok("Skipped (--no-psst)");
457
+ return;
458
+ }
455
459
 
456
460
  step("⑥", "Storing secrets in psst...");
457
461