skill-atlas-cli 0.1.18 → 0.1.19
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/lib/index.js +1 -1
- package/package.json +1 -1
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: {
|
|
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}。`);
|