portable-agent-layer 0.26.0 → 0.26.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli/index.ts +11 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portable-agent-layer",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "PAL — Portable Agent Layer: persistent personal context for AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli/index.ts CHANGED
@@ -22,6 +22,7 @@ import { existsSync, mkdirSync, readdirSync, readFileSync, statSync } from "node
22
22
  import { homedir } from "node:os";
23
23
  import { resolve } from "node:path";
24
24
  import { palHome, palPkg, platform } from "../hooks/lib/paths";
25
+ import { hasRealContent, SETUP_STEPS, STEP_ORDER } from "../hooks/lib/setup";
25
26
  import { log } from "../targets/lib";
26
27
 
27
28
  const allArgs = process.argv.slice(2);
@@ -460,19 +461,16 @@ function doctor(silent = false): DoctorResult {
460
461
  : fail("CLAUDE.md — missing (run 'pal cli install --claude')");
461
462
  }
462
463
 
463
- // Setup state
464
- const setupPath = resolve(home, "memory", "state", "setup.json");
465
- if (existsSync(setupPath)) {
466
- try {
467
- const setup = JSON.parse(readFileSync(setupPath, "utf-8"));
468
- setup?.completed
469
- ? ok("TELOS setup complete")
470
- : warn("TELOS setup incomplete — run 'pal cli install' or start a session");
471
- } catch {
472
- warn("TELOS setup — could not read setup.json");
473
- }
474
- } else {
475
- warn("TELOS setup — setup.json missing (run 'pal cli install')");
464
+ // Setup state — check file content directly (no setup.json dependency)
465
+ {
466
+ const missing = STEP_ORDER.filter(
467
+ (key) => !hasRealContent(resolve(home, SETUP_STEPS[key].file))
468
+ );
469
+ missing.length === 0
470
+ ? ok("TELOS setup complete")
471
+ : warn(
472
+ `TELOS setup incomplete — ${missing.join(", ")} missing (run 'pal cli install')`
473
+ );
476
474
  }
477
475
 
478
476
  // Skills (per installed agent)