@pushpalsdev/cli 1.0.20 → 1.0.21

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": "@pushpalsdev/cli",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "PushPals terminal CLI for LocalBuddy -> RemoteBuddy orchestration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  import { existsSync, readFileSync } from "fs";
2
- import { resolve } from "path";
2
+ import { join } from "path";
3
3
  import { DEFAULT_WORKERPALS_EXECUTOR, loadPushPalsConfig } from "shared";
4
4
  import type { ExecutorBackend } from "../common/types.js";
5
5
  import { MINISWE_BACKEND } from "./miniswe_backend.js";
@@ -44,9 +44,12 @@ export function parseRequiredBackendToml(path: string): BackendTomlShape {
44
44
  return parsed as BackendTomlShape;
45
45
  }
46
46
 
47
+ export function resolveBackendTomlPath(configDir: string): string {
48
+ return join(configDir, "backend.toml");
49
+ }
50
+
47
51
  function loadBackendToml(): BackendTomlShape {
48
- const projectRoot = loadPushPalsConfig().projectRoot;
49
- const path = resolve(projectRoot, "configs", "backend.toml");
52
+ const path = resolveBackendTomlPath(loadPushPalsConfig().configDir);
50
53
  return parseRequiredBackendToml(path);
51
54
  }
52
55