mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:51:36 +00:00
chore: update openclaw naming
This commit is contained in:
@@ -58,7 +58,7 @@ describe("skills-cli", () => {
|
||||
const report = createMockReport([]);
|
||||
const output = formatSkillsList(report, {});
|
||||
expect(output).toContain("No skills found");
|
||||
expect(output).toContain("npx clawdhub");
|
||||
expect(output).toContain("npx clawhub");
|
||||
});
|
||||
|
||||
it("formats skills list with eligible skill", () => {
|
||||
@@ -138,7 +138,7 @@ describe("skills-cli", () => {
|
||||
const report = createMockReport([]);
|
||||
const output = formatSkillInfo(report, "unknown-skill", {});
|
||||
expect(output).toContain("not found");
|
||||
expect(output).toContain("npx clawdhub");
|
||||
expect(output).toContain("npx clawhub");
|
||||
});
|
||||
|
||||
it("shows detailed info for a skill", () => {
|
||||
@@ -198,7 +198,7 @@ describe("skills-cli", () => {
|
||||
expect(output).toContain("ready-2");
|
||||
expect(output).toContain("not-ready");
|
||||
expect(output).toContain("go"); // missing binary
|
||||
expect(output).toContain("npx clawdhub");
|
||||
expect(output).toContain("npx clawhub");
|
||||
});
|
||||
|
||||
it("outputs JSON with --json flag", () => {
|
||||
|
||||
@@ -27,9 +27,9 @@ export type SkillsCheckOptions = {
|
||||
json?: boolean;
|
||||
};
|
||||
|
||||
function appendClawdHubHint(output: string, json?: boolean): string {
|
||||
function appendClawHubHint(output: string, json?: boolean): string {
|
||||
if (json) return output;
|
||||
return `${output}\n\nTip: use \`npx clawdhub\` to search, install, and sync skills.`;
|
||||
return `${output}\n\nTip: use \`npx clawhub\` to search, install, and sync skills.`;
|
||||
}
|
||||
|
||||
function formatSkillStatus(skill: SkillStatusEntry): string {
|
||||
@@ -94,7 +94,7 @@ export function formatSkillsList(report: SkillStatusReport, opts: SkillsListOpti
|
||||
const message = opts.eligible
|
||||
? `No eligible skills found. Run \`${formatCliCommand("openclaw skills list")}\` to see all skills.`
|
||||
: "No skills found.";
|
||||
return appendClawdHubHint(message, opts.json);
|
||||
return appendClawHubHint(message, opts.json);
|
||||
}
|
||||
|
||||
const eligible = skills.filter((s) => s.eligible);
|
||||
@@ -132,7 +132,7 @@ export function formatSkillsList(report: SkillStatusReport, opts: SkillsListOpti
|
||||
}).trimEnd(),
|
||||
);
|
||||
|
||||
return appendClawdHubHint(lines.join("\n"), opts.json);
|
||||
return appendClawHubHint(lines.join("\n"), opts.json);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -149,7 +149,7 @@ export function formatSkillInfo(
|
||||
if (opts.json) {
|
||||
return JSON.stringify({ error: "not found", skill: skillName }, null, 2);
|
||||
}
|
||||
return appendClawdHubHint(
|
||||
return appendClawHubHint(
|
||||
`Skill "${skillName}" not found. Run \`${formatCliCommand("openclaw skills list")}\` to see available skills.`,
|
||||
opts.json,
|
||||
);
|
||||
@@ -243,7 +243,7 @@ export function formatSkillInfo(
|
||||
}
|
||||
}
|
||||
|
||||
return appendClawdHubHint(lines.join("\n"), opts.json);
|
||||
return appendClawHubHint(lines.join("\n"), opts.json);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,7 +324,7 @@ export function formatSkillsCheck(report: SkillStatusReport, opts: SkillsCheckOp
|
||||
}
|
||||
}
|
||||
|
||||
return appendClawdHubHint(lines.join("\n"), opts.json);
|
||||
return appendClawHubHint(lines.join("\n"), opts.json);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user