├── .editorconfig ├── .env.example ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.yml │ ├── FEATURE_REQUEST.yml │ └── config.yml ├── screenshot.png └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── .nvmrc ├── .vscode └── settings.json ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── package.json ├── patches └── @clack__prompts@0.6.1.patch ├── pnpm-lock.yaml ├── src ├── cli.ts ├── commands │ ├── aicommits.ts │ ├── config.ts │ ├── hook.ts │ ├── model.ts │ ├── pr.ts │ ├── prepare-commit-msg-hook.ts │ └── setup.ts ├── feature │ ├── models.ts │ └── providers │ │ ├── base.ts │ │ ├── index.ts │ │ ├── ollama.ts │ │ ├── openai.ts │ │ ├── openaiCustom.ts │ │ ├── openrouter.ts │ │ ├── providers-data.ts │ │ └── together.ts └── utils │ ├── commit-helpers.ts │ ├── config-runtime.ts │ ├── config-types.ts │ ├── constants.ts │ ├── error.ts │ ├── fs.ts │ ├── git.ts │ ├── openai.ts │ ├── prompt.ts │ └── web.ts ├── tests ├── fixtures │ ├── README.md │ ├── chore.diff │ ├── code-refactoring.diff │ ├── code-style.diff │ ├── continous-integration.diff │ ├── deprecate-feature.diff │ ├── documentation-changes.diff │ ├── fix-nullpointer-exception.diff │ ├── github-action-build-pipeline.diff │ ├── new-feature.diff │ ├── performance-improvement.diff │ ├── remove-feature.diff │ └── testing-react-application.diff ├── index.ts ├── specs │ ├── cli │ │ ├── commits.ts │ │ ├── error-cases.ts │ │ └── index.ts │ ├── config.ts │ ├── git-hook.ts │ ├── openai │ │ └── index.ts │ └── togetherai │ │ └── index.ts └── utils.ts └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.env.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.github/ISSUE_TEMPLATE/BUG_REPORT.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /.github/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.github/screenshot.png -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v22.14.0 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/package.json -------------------------------------------------------------------------------- /patches/@clack__prompts@0.6.1.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/patches/@clack__prompts@0.6.1.patch -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/commands/aicommits.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/commands/aicommits.ts -------------------------------------------------------------------------------- /src/commands/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/commands/config.ts -------------------------------------------------------------------------------- /src/commands/hook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/commands/hook.ts -------------------------------------------------------------------------------- /src/commands/model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/commands/model.ts -------------------------------------------------------------------------------- /src/commands/pr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/commands/pr.ts -------------------------------------------------------------------------------- /src/commands/prepare-commit-msg-hook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/commands/prepare-commit-msg-hook.ts -------------------------------------------------------------------------------- /src/commands/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/commands/setup.ts -------------------------------------------------------------------------------- /src/feature/models.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/models.ts -------------------------------------------------------------------------------- /src/feature/providers/base.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/providers/base.ts -------------------------------------------------------------------------------- /src/feature/providers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/providers/index.ts -------------------------------------------------------------------------------- /src/feature/providers/ollama.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/providers/ollama.ts -------------------------------------------------------------------------------- /src/feature/providers/openai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/providers/openai.ts -------------------------------------------------------------------------------- /src/feature/providers/openaiCustom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/providers/openaiCustom.ts -------------------------------------------------------------------------------- /src/feature/providers/openrouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/providers/openrouter.ts -------------------------------------------------------------------------------- /src/feature/providers/providers-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/providers/providers-data.ts -------------------------------------------------------------------------------- /src/feature/providers/together.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/feature/providers/together.ts -------------------------------------------------------------------------------- /src/utils/commit-helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/commit-helpers.ts -------------------------------------------------------------------------------- /src/utils/config-runtime.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/config-runtime.ts -------------------------------------------------------------------------------- /src/utils/config-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/config-types.ts -------------------------------------------------------------------------------- /src/utils/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/constants.ts -------------------------------------------------------------------------------- /src/utils/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/error.ts -------------------------------------------------------------------------------- /src/utils/fs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/fs.ts -------------------------------------------------------------------------------- /src/utils/git.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/git.ts -------------------------------------------------------------------------------- /src/utils/openai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/openai.ts -------------------------------------------------------------------------------- /src/utils/prompt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/prompt.ts -------------------------------------------------------------------------------- /src/utils/web.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/src/utils/web.ts -------------------------------------------------------------------------------- /tests/fixtures/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/README.md -------------------------------------------------------------------------------- /tests/fixtures/chore.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/chore.diff -------------------------------------------------------------------------------- /tests/fixtures/code-refactoring.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/code-refactoring.diff -------------------------------------------------------------------------------- /tests/fixtures/code-style.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/code-style.diff -------------------------------------------------------------------------------- /tests/fixtures/continous-integration.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/continous-integration.diff -------------------------------------------------------------------------------- /tests/fixtures/deprecate-feature.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/deprecate-feature.diff -------------------------------------------------------------------------------- /tests/fixtures/documentation-changes.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/documentation-changes.diff -------------------------------------------------------------------------------- /tests/fixtures/fix-nullpointer-exception.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/fix-nullpointer-exception.diff -------------------------------------------------------------------------------- /tests/fixtures/github-action-build-pipeline.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/github-action-build-pipeline.diff -------------------------------------------------------------------------------- /tests/fixtures/new-feature.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/new-feature.diff -------------------------------------------------------------------------------- /tests/fixtures/performance-improvement.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/performance-improvement.diff -------------------------------------------------------------------------------- /tests/fixtures/remove-feature.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/remove-feature.diff -------------------------------------------------------------------------------- /tests/fixtures/testing-react-application.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/fixtures/testing-react-application.diff -------------------------------------------------------------------------------- /tests/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/index.ts -------------------------------------------------------------------------------- /tests/specs/cli/commits.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/specs/cli/commits.ts -------------------------------------------------------------------------------- /tests/specs/cli/error-cases.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/specs/cli/error-cases.ts -------------------------------------------------------------------------------- /tests/specs/cli/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/specs/cli/index.ts -------------------------------------------------------------------------------- /tests/specs/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/specs/config.ts -------------------------------------------------------------------------------- /tests/specs/git-hook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/specs/git-hook.ts -------------------------------------------------------------------------------- /tests/specs/openai/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/specs/openai/index.ts -------------------------------------------------------------------------------- /tests/specs/togetherai/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/specs/togetherai/index.ts -------------------------------------------------------------------------------- /tests/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tests/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nutlope/aicommits/HEAD/tsconfig.json --------------------------------------------------------------------------------