Skip to content

Add LICENSE, AGENTS.md, and richer package.json metadata#2

Merged
shuakami merged 1 commit into
mainfrom
devin/1778038249-license-agents-package-meta
May 6, 2026
Merged

Add LICENSE, AGENTS.md, and richer package.json metadata#2
shuakami merged 1 commit into
mainfrom
devin/1778038249-license-agents-package-meta

Conversation

@shuakami
Copy link
Copy Markdown
Member

@shuakami shuakami commented May 6, 2026

Summary

Land explicit license terms, an agent-facing playbook, and search-friendly npm metadata so the published uapi-sdk-typescript package surfaces well in npm search and AI-agent tooling.

  • LICENSE (MIT)
  • AGENTS.md — install, typed client surface (client.misc.getMiscWeather, ...), auth, errors, rate limits, links to sibling repos
  • package.json — English description, MIT license, uapis.cn homepage, issues URL, keywords (uapi, sdk, typescript, public-api, openapi, ...)

No code changes; build/publish pipeline untouched.

Review & Testing Checklist for Human

  • npm publish for next version picks up the new metadata
  • License auto-detected by GitHub

Make the published npm package easier to discover and consume:

- LICENSE (MIT) so the published tarball ships with explicit terms.
- AGENTS.md is the dedicated agent-facing playbook covering install,
  the typed client surface, auth, error handling, and rate limits.
- package.json gains an English description, license=MIT, an
  uapis.cn homepage, an issues URL, and npm-search-friendly keywords
  (uapi, uapis.cn, sdk, typescript, public-api, openapi, ...).

No code changes; build/publish pipeline is unaffected.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@shuakami shuakami merged commit 6b975ac into main May 6, 2026
1 check passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0817c9e417

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread AGENTS.md
Comment on lines +62 to +64

Every method throws an `AxiosError`-shaped error on non-2xx responses. The
error body is a JSON object: `{code, success: false, error, request_id?}`.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Correct the documented error type

For non-2xx responses this SDK does not expose an AxiosError-shaped object: HTTP.request catches Axios responses, maps them with mapError, and throws a UapiError subclass with code, status, details, payload, and meta. Agents following this guidance will generate handlers that read Axios fields like error.response.data, which are absent on the thrown SDK errors and will lose the real API error details.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants