pi-lean-host 0.7.2 → 0.8.0

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/core/staging.ts CHANGED
@@ -12,18 +12,18 @@ let _stagingRoot = join(tmpdir(), "pi-lean-host");
12
12
  /** Test override — mirrors `setUserGuidesDir` so tests keep drafts out of
13
13
  * the real /tmp root. */
14
14
  export function setStagingRoot(dir: string): void {
15
- _stagingRoot = dir;
15
+ _stagingRoot = dir;
16
16
  }
17
17
 
18
18
  /** Deterministic staged dir: `<root>/<key>/`. The key is the requested
19
19
  * `domain` for templates (placeholder shortName) and `slug(shortName)` for
20
20
  * fetched recipes (which is the on-disk dirName). */
21
21
  export function stagingDirFor(key: string): string {
22
- return join(_stagingRoot, key);
22
+ return join(_stagingRoot, key);
23
23
  }
24
24
 
25
25
  /** True when `p` is a staged dir under the staging root (the root itself
26
26
  * excluded — save must never try to rename the whole root). */
27
27
  export function isUnderStagingRoot(p: string): boolean {
28
- return p !== _stagingRoot && p.startsWith(`${_stagingRoot}${sep}`);
28
+ return p !== _stagingRoot && p.startsWith(`${_stagingRoot}${sep}`);
29
29
  }
@@ -3,9 +3,8 @@
3
3
  *
4
4
  * Both api-probe and api-fetch (/api verify) hit the same real-world 403
5
5
  * reality: an authenticated-but-forbidden response whose body carries the
6
- * server's own reason. One classifier keeps the two paths from drifting —
7
- * probe used to surface the server message while fetch threw a bare status,
8
- * which made plan-gated 403s read as recipe bugs.
6
+ * server's own reason. One classifier keeps the two paths from drifting
7
+ * and keeps plan-gated 403s from reading as recipe bugs.
9
8
  */
10
9
 
11
10
  /** Structured "plan not authorized" signal — a 403 whose extracted reason