Thanks for helping improve @noderings/ai-sdk.
-
Open an issue before large changes.
-
Use Node.js 22 or later (the AI SDK 7 requires it).
npm ci, then:npm test # unit, safety, AI SDK approval and Edge runtime tests; no token needed npm run lint npm run typecheck npm run build
CI also checks the package with
publintand@arethetypeswrong/cli, enforces 85 % test coverage (npm run test:coverage) and builds the Next.js example. -
Tool names, kinds, input fields and descriptions are shared with the NodeRings LangChain tools. Change them in both places, and keep descriptions accurate: NodeRings sells Compute Instances (virtual machines), hosted DNS and Instant Apps. Do not describe roadmap products as orderable.
-
Every new write tool needs
confirm, a dry-run path, an approval reason, and tests that showconfirm: falseand dry run send no write request.test/fake-api.tsfails any request whose path is not inapi/openapi.json. -
For changes that affect requests, also run the live tests against your own organization:
NODERINGS_TOKEN=... npm run test:live
They create and delete a throwaway SSH key and DNS zone.
NODERINGS_TEST_BILLED=1(withNODERINGS_TEST_PLAN_IDandNODERINGS_TEST_REGION_ID) also creates a virtual machine, which is billed for the minutes it exists. -
Use Conventional Commits (release-please builds the changelog from them) and sign off your commits (
git commit -s) for the Developer Certificate of Origin.
Releases are described in RELEASING.md. Report security problems privately as described in SECURITY.md.