skillett 0.2.0 → 0.2.1
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/dist/commands/status.js +1 -1
- package/dist/lib/api.js +1 -1
- package/package.json +1 -1
package/dist/commands/status.js
CHANGED
|
@@ -32,7 +32,7 @@ export async function status() {
|
|
|
32
32
|
const spinner = isTTY ? ora(" Checking status…").start() : null;
|
|
33
33
|
// Fetch user info and skills in parallel
|
|
34
34
|
const [userRes, skillsRes] = await Promise.all([
|
|
35
|
-
skillettFetch("/
|
|
35
|
+
skillettFetch("/v1/me", apiKey).catch(() => null),
|
|
36
36
|
skillettFetch("/v1/skills", apiKey).catch(() => null),
|
|
37
37
|
]);
|
|
38
38
|
spinner?.stop();
|
package/dist/lib/api.js
CHANGED
|
@@ -43,7 +43,7 @@ export async function downloadSkill(apiKey, name) {
|
|
|
43
43
|
return res.json();
|
|
44
44
|
}
|
|
45
45
|
export async function whoami(apiKey) {
|
|
46
|
-
const res = await skillettFetch("/
|
|
46
|
+
const res = await skillettFetch("/v1/me", apiKey);
|
|
47
47
|
if (!res.ok)
|
|
48
48
|
throw new Error(`Failed to get user info: ${res.status}`);
|
|
49
49
|
return res.json();
|