Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.75 KB

CONTRIBUTING.md

File metadata and controls

38 lines (31 loc) · 1.75 KB

Contributing

Thanks for helping improve @noderings/ai-sdk.

  1. Open an issue before large changes.

  2. 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 publint and @arethetypeswrong/cli, enforces 85 % test coverage (npm run test:coverage) and builds the Next.js example.

  3. 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.

  4. Every new write tool needs confirm, a dry-run path, an approval reason, and tests that show confirm: false and dry run send no write request. test/fake-api.ts fails any request whose path is not in api/openapi.json.

  5. 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 (with NODERINGS_TEST_PLAN_ID and NODERINGS_TEST_REGION_ID) also creates a virtual machine, which is billed for the minutes it exists.

  6. 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.