Executable doctor provider and standalone CLI for lightweight Ankhorage repo and package compliance diagnostics.
@ankhorage/doctor is the repo/package compliance provider for Ankhorage.
The same shared command implementation backs both:
ankh doctor ...bunx @ankhorage/doctor ...
Current command surface:
validatefixrepopackage
doctor#2 adds a profile-based policy engine:
- strict
public-packagevalidation for extracted public package repos - light recognized
integration-monorepovalidation forankhorage4 - canonical app-manifest authentication validation for JSON file targets
- non-mutating
fixplans for deterministic mechanical changes only
Manifest validation accepts infra.auth.flow as the only auth-flow location, rejects
settings.authFlow with a manual-migration diagnostic, and permits authentication without
an authorization block.
Still deferred:
- GitHub checks
- CI checks
- on-disk
fix --apply - deeper cross-repo policy enforcement
Path handling:
- pass a repo/package directory or app-manifest JSON file as
[path], or - omit it to inspect the current working directory
Source: src/readme-usage.ts
import { runCli } from './cli/standalone.js';
await runCli(['--help']);bunx @ankhorage/doctor