skill-atlas-cli 0.1.23 → 0.1.24
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
|
@@ -313,7 +313,7 @@ var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin((
|
|
|
313
313
|
async function get(apiPath, params = {}) {
|
|
314
314
|
const url = new URL(apiPath, config_default.getApiBase());
|
|
315
315
|
for (const [k, v] of Object.entries(params)) if (v !== void 0 && v !== null && v !== "") url.searchParams.set(k, String(v));
|
|
316
|
-
const res = await fetch(url.toString(), { headers: {
|
|
316
|
+
const res = await fetch(url.toString(), { headers: { "X-SkillAtlas-Agent-Id": config_default.getAgentId() } });
|
|
317
317
|
if (!res.ok) {
|
|
318
318
|
const body = await res.text().catch(() => "");
|
|
319
319
|
throw new Error(`API error ${res.status}: ${body || res.statusText}`);
|