import fs from "node:fs"; import os from "node:os"; import path from "node:path"; import { afterEach, describe, expect, it, vi } from "vitest"; import { CLAUDE_CLI_PROFILE_ID } from "../agents/auth-profiles/constants.js"; import type { AuthProfileStore } from "../agents/auth-profiles/types.js"; import {
noteClaudeCliHealth,
resolveClaudeCliProjectDirForWorkspace,
} from "./doctor-claude-cli.js";
const body = String(noteFn.mock.calls[0]?.[0]);
expect(body).toContain("Headless Claude auth: OK (oauth).");
expect(body).toContain(`OpenClaw auth profile: missing (${CLAUDE_CLI_PROFILE_ID})`);
expect(body).toContain( "openclaw models auth login --provider anthropic --method cli --set-default",
);
expect(body).toContain( "not created yet; it appears after the first Claude CLI turn in this workspace",
);
});
});
const body = String(noteFn.mock.calls[0]?.[0]);
expect(body).toContain('Binary: command "claude" was not found on PATH.');
expect(body).toContain("Headless Claude auth: unavailable without interactive prompting.");
expect(body).toContain("claude auth login");
});
});
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.