skill-atlas-cli 0.1.18 → 0.1.20

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.
package/bin/cli.js CHANGED
@@ -30,7 +30,7 @@ const PKG = getPackageJson();
30
30
  const VERSION = PKG.version;
31
31
  async function main() {
32
32
  checkForUpdate(PKG);
33
- showLogo();
33
+ if (!process.argv.includes("-y") && !process.argv.includes("--yes")) showLogo();
34
34
  const parseArgv = process.argv.slice(2).length === 0 ? [...process.argv.slice(0, 2), "--help"] : process.argv;
35
35
  const cli = cac("skill-atlas");
36
36
  cli.command("search [keyword]", "搜索 skill(按名称或描述匹配)").action(async (keyword) => {
package/lib/index.js CHANGED
@@ -352,7 +352,7 @@ async function downloadSkillPackage(slug, version) {
352
352
  const url = new URL("/api/v1/download", config_default.getApiBase());
353
353
  url.searchParams.set("slug", slug);
354
354
  url.searchParams.set("version", version);
355
- const res = await fetch(url.toString(), { headers: { agent_id: config_default.getAgentId() } });
355
+ const res = await fetch(url.toString(), { headers: { "X-SkillAtlas-Agent-Id": config_default.getAgentId() } });
356
356
  if (!res.ok) {
357
357
  const body = await res.text().catch(() => "");
358
358
  throw new Error(`下载失败 ${res.status}: ${body || res.statusText}。`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-atlas-cli",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "skill-atlas CLI - 虾小宝 命令行工具",
5
5
  "homepage": "https://skillatlas.cn/",
6
6
  "type": "module",