@alfe.ai/doctor
v0.1.7
Published
Bounded, read-only agent-workspace diagnostics for the Alfe gateway and support surface. The package runs opencode against the local AI proxy with a generated deny-by-default configuration, then returns a structured `DiagnosticReport`.
Readme
@alfe.ai/doctor
Bounded, read-only agent-workspace diagnostics for the Alfe gateway and support
surface. The package runs opencode against the local AI proxy with a generated
deny-by-default configuration, then returns a structured DiagnosticReport.
import { runDiagnostic } from "@alfe.ai/doctor";
const report = await runDiagnostic({
task: "Find the cause of the integration startup failure",
workspacePath: "/home/alfe/.openclaw",
apiKey: "alfe_live_…",
});The proxy must be loopback HTTP. Execution is time/output bounded; child environment variables are allowlisted; the support key lives only in an owner-only temporary config that is removed before return. When opencode is unavailable, a bounded symlink-safe filesystem summary is returned.
Part of Alfe — the operating system for AI agents: build, deploy, and run agents with persistent memory, identity, integrations, and channels. See the documentation to get started.
Install
npm install @alfe.ai/doctorDevelopment
pnpm --filter @alfe.ai/doctor lint
pnpm --filter @alfe.ai/doctor typecheck
pnpm --filter @alfe.ai/doctor test
pnpm --filter @alfe.ai/doctor buildLinks
- 🌐 Website: https://alfe.ai
- 📚 Docs: https://docs.alfe.ai
