Gaunt Sloth Assistant - v1.4.0
    Preparing search index...

    Contributing to Gaunt Sloth Assistant

    This project is developed on GitHub. Please use:

    • Issues for bug reports, feature requests, and design discussion
    • Pull requests for proposed code or documentation changes

    Keep changes focused. Large or ambiguous changes should start with an Issue so the approach can be discussed before implementation.

    1. Check existing Issues and pull requests to avoid duplicates.
    2. If you plan to change behavior, add or update tests in the same pull request.
    3. Do not include secrets, API keys, or personal data in code, tests, fixtures, screenshots, or diffs.

    The repository currently targets Node.js 24 and npm 11 or newer.

    npm ci
    npm run build

    Useful commands:

    npm test
    npm run lint
    npm run lint-n-fix
    npm run format
    • Follow the existing project structure and naming conventions.
    • Prefer import aliases such as #src/*.js instead of relative imports where possible.
    • Use project utilities instead of direct platform access:
      • src/utils/consoleUtils.ts for user-facing console output
      • src/utils/systemUtils.ts for system access
      • src/utils/llmUtils.ts for LLM access
    • Keep architecture boundaries clear between commands, modules, providers, tools, middleware, and core runtime code.
    • Avoid unrelated refactors in the same pull request unless they are necessary for the change.

    Tests are required for pull requests that change behavior, fix bugs, or add features.

    • Add or update unit tests in spec/ when changing application logic
    • Add or update integration tests in integration-tests/ when changing end-to-end behavior, command flows, provider integration, or output contracts
    • If a change does not need tests, explain why in the pull request description

    Before opening a pull request, run:

    npm test
    npm run lint

    Integration tests are available when relevant:

    npm run it <provider>
    npm run it <provider> simple

    See integration-tests/README.md for details.

    When working in spec/:

    • Use Vitest
    • Reset mocks in beforeEach() with vi.resetAllMocks()
    • Import the file under test dynamically inside each test
    • Mock dependencies instead of importing mocked implementations directly into the tested module

    When adding release notes, follow the conventions in release-notes/.

    PRs should be easy to review and easy to validate.

    Include in the pull request description:

    • What changed
    • Why it changed
    • How it was tested
    • Any follow-up work, limitations, or risk areas

    Reasonable PR checklist:

    • The branch is up to date with the target branch
    • The change is scoped to one problem or feature
    • Tests are included when behavior changes
    • npm test passes locally
    • npm run lint passes locally
    • Documentation is updated if user-facing behavior changed

    Small, targeted pull requests are preferred over large mixed changes.

    Open a GitHub Issue and include:

    • Expected behavior
    • Actual behavior
    • Steps to reproduce
    • Relevant logs or command output
    • Environment details such as Node.js version, OS, and provider/config context

    If the report involves credentials or private data, redact them before posting.

    Open a GitHub Issue describing:

    • The problem you are trying to solve
    • The proposed user-facing behavior
    • Alternatives considered, if any

    If you need to publish project documentation, clone gaunt-sloth-assistant.github.io in the same parent directory as this repository and run:

    ./update-docs.sh
    

    Commit and push from the gaunt-sloth-assistant.github.io repository.

    By participating in this project, you agree to follow the Code of Conduct.