mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-15 23:31:10 +00:00
ApiError previously displayed raw JSON like:
API error 403: {"code":403,"msg":"Access denied..."}
Now extracts the msg field from the API response body and displays:
Access denied to skill: find-skills
Run `skillhub login` to authenticate.
Changes:
- Add extractHumanMessage() to pull msg/message/error from response
- ApiError.message now shows human text instead of raw JSON
- 401/403 responses append login hint
- whoami: remove redundant 'Not authenticated:' prefix
|
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| .npmignore | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tsconfig.json | ||
| unbuild.config.ts | ||
| vitest.config.ts | ||