truecourse 0.1.14 → 0.1.15

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/cli.mjs +4 -1
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -12271,6 +12271,9 @@ var init_macos = __esm({
12271
12271
  async install(serverPath, logPath) {
12272
12272
  const envFile = path.join(os.homedir(), ".truecourse", ".env");
12273
12273
  const envVars = parseEnvFile(envFile);
12274
+ if (process.env.PATH && !envVars.PATH) {
12275
+ envVars.PATH = process.env.PATH;
12276
+ }
12274
12277
  fs2.mkdirSync(PLIST_DIR, { recursive: true });
12275
12278
  fs2.mkdirSync(path.dirname(logPath), { recursive: true });
12276
12279
  const plist = buildPlist(serverPath, logPath, envVars);
@@ -12621,7 +12624,7 @@ function getServerPath() {
12621
12624
  }
12622
12625
  async function healthcheck() {
12623
12626
  const url2 = getServerUrl();
12624
- for (let i = 0; i < 30; i++) {
12627
+ for (let i = 0; i < 120; i++) {
12625
12628
  try {
12626
12629
  const res = await fetch(`${url2}/api/health`);
12627
12630
  if (res.ok) return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truecourse",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Visualize your codebase architecture as an interactive graph",
5
5
  "type": "module",
6
6
  "bin": {