Thank you for improving OpenIMSDK documentation. Contributions must preserve the accuracy of both the product content and the documentation system.
- Use Node.js 22.12 or newer and the pnpm version declared in
package.json. - Read
AGENTS.mdanddocs/CONTENT_AUTHORING.mdbefore editing SDK or Platform API content. - Check
git statusand preserve unrelated work already present in the worktree. - Confirm that the target capability exists in the pinned OpenIMClientSDK declaration, OpenIMServer source, OpenAPI document, or immutable audit evidence.
Simplified Chinese is the editorial source for client SDK guides:
- Review the complete Chinese page and its evidence.
- Update the page manually; do not use scripts or machine translation for final prose.
- Update the page's audit record after the review.
- Translate the reviewed page manually into English.
- Verify that titles, parameters, examples, results, event boundaries, and links match the Chinese source and the target SDK.
Do not publish an English SDK page while its Chinese source is incomplete or its English audit state is deferred.
- Organize task pages by user operation, not by a mechanically repeated template.
- Keep parameter and result explanations next to the API operation they describe.
- Do not combine parameters from unrelated APIs in one table.
- Explain Future or Promise completion, event delivery, and query reconciliation as separate stages.
- Give each event one owning page. Other pages link to that owner instead of registering the same listener again.
- Use stable business identifiers such as
conversationID,groupID,userID, andclientMsgID; never use an array index or display name as a merge key. - Do not document deprecated, reserved, unsupported, or inferred capabilities as public features.
- Mark commercial capabilities through the existing Enterprise metadata and ownership system.
Adding, deleting, merging, or moving a page requires coordinated updates to:
- English and Chinese content
- route and sidebar structure
- audit and API/event ownership records
- search and localized generated data
- approved redirects, when compatibility is required
- tests covering the affected structure
Completed migration plans and one-time rewrite tools are retained in Git history rather than the current maintenance interface. Use the current architecture, scope, audit records, and active package scripts as the source of truth.
Run the checks appropriate to the change:
pnpm content:check
pnpm checkAlso run a production build for route, navigation, rendering, publication-state, or deployment changes:
pnpm buildAfter pnpm build, keep the repository's expected next-env.d.ts import if Next.js rewrites it.
A documentation pull request should state:
- the pages or domains changed;
- the SDK/server version or immutable source used for verification;
- whether routes, event ownership, commercial metadata, or redirects changed;
- the validation commands run and any remaining failure.
Do not include tokens, private deployment addresses, customer data, internal screenshots, or sensitive diagnostic logs.