CONTRIBUTING.md
May 12, 2026 · View on GitHub
Setting up the environment
This repository uses yarn@v1.
Other package managers may work but are not officially supported for development.
To set up the repository, run:
$ yarn
$ yarn build
This will install all the required dependencies and build output files to dist/.
Modifying/Adding code
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
result in merge conflicts between manual patches and changes from the generator. The generator will never
modify the contents of the src/lib/ and examples/ directories.
Adding and running examples
All files in the examples/ directory are not modified by the generator and can be freely edited or added to.
// add an example to examples/<your-example>.ts
#!/usr/bin/env -S yarn tsn -T
…
$ chmod +x examples/<your-example>.ts
# run the example against your api
$ yarn tsn -T examples/<your-example>.ts
Using the repository from source
If you'd like to use the repository from source, you can either install from git or link to a cloned repository:
To install via git:
$ npm install git+ssh://git@github.com:ogx-ai/ogx-client-typescript.git
Alternatively, to link a local copy of the repo:
# Clone
$ git clone https://www.github.com/ogx-ai/ogx-client-typescript
$ cd ogx-client-typescript
# With yarn
$ yarn link
$ cd ../my-package
$ yarn link ogx-client
# With npm
$ npm link
$ cd ../my-package
$ npm link llama-stack-client
# With pnpm
$ pnpm link --global
$ cd ../my-package
$ pnpm link --global ogx-client
Running tests
Most tests require you to set up a mock server against the OpenAPI spec to run the tests.
$ npx @stainless-api/prism-cli@5.15.0 prism mock path/to/your/openapi.yml
$ yarn run test
Linting and formatting
This repository uses prettier and eslint to format the code in the repository.
To lint:
$ yarn lint
To format and fix all lint issues automatically:
$ yarn fix