Commit Graph

122 Commits

Author SHA1 Message Date
di-sukharev 9cf2db84a9 3.0.15 2024-05-05 19:12:23 +03:00
GPT10 ec307d561f 3.0.14 (#333)
* test:  add the first E2E test and configuration to CI (#316)

* add tests

* Add push config (#220)

* feat: add instructions and support for configuring gpt-4-turbo (#320)

* 3.0.12

* build

* feat: add 'gpt-4-turbo' to supported models in README and config validation

---------

Co-authored-by: di-sukharev <dim.sukharev@gmail.com>

*  fix the broken E2E tests due to the addition of OCO_GITPUSH (#321)

* test(oneFile.test.ts): update test expectations to match new push prompt text

* build

* Feat: Add Claude 3 support (#318)

* 3.0.12

* build

* feat: anthropic claude 3 support

* fix: add system prompt

* fix: type check

* fix: package version

* fix: update anthropic for dependency bug fix

* feat: update build files

* feat: update version number

---------

Co-authored-by: di-sukharev <dim.sukharev@gmail.com>

* 🐛bug fix: enable to use the new format of OpenAI's project API Key (#328)

* fix(config.ts): remove validation for OCO_OPENAI_API_KEY length to accommodate variable key lengths

* build

* ♻️ refactor(config.ts): Addition of UnitTest environment and unittest for commands/config.ts#getConfig (#330)

* feat(jest.config.ts): update jest preset for TS ESM support and ignore patterns
feat(package.json): add test:unit script with NODE_OPTIONS for ESM
refactor(src/commands/config.ts): improve dotenv usage with dynamic paths
feat(src/commands/config.ts): allow custom config and env paths in getConfig
refactor(src/commands/config.ts): streamline environment variable access

feat(test/unit): add unit tests for config handling and utility functions

- Implement unit tests for `getConfig` function to ensure correct behavior
  in various scenarios including default values, global config, and local
  env file precedence.
- Add utility function `prepareFile` for creating temporary files during
  tests, facilitating testing of file-based configurations.

* feat(e2e.yml): add unit-test job to GitHub Actions for running unit tests on pull requests

* ci(test.yml): add GitHub Actions workflow for unit and e2e tests on pull requests

* refactor(config.ts): streamline environment variable access using process.env directly
test(config.test.ts): add setup and teardown for environment variables in tests to ensure test isolation

* feat(package.json): add `test:all` script to run all tests in Docker
refactor(package.json): consolidate Docker build steps into `test:docker-build` script for DRY principle
fix(package.json): ensure `test:unit:docker` and `test:e2e:docker` scripts use the same Docker image and remove container after run
chore(test/Dockerfile): remove default CMD to allow dynamic test script execution in Docker

* refactor(config.test.ts): anonymize API keys in tests for better security practices

* feat(config.test.ts): add tests for OCO_ANTHROPIC_API_KEY configuration

* refactor(config.ts): streamline path imports and remove unused DotenvParseOutput

- Simplify path module imports by removing default import and using named imports for `pathJoin` and `pathResolve`.
- Remove unused `DotenvParseOutput` import to clean up the code.

* refactor(config.test.ts): simplify API key mock values for clarity in tests

* test(config.test.ts): remove tests for default config values and redundant cases

- Removed tests that checked for default config values when no config or env files are present, as these scenarios are now handled differently.
- Eliminated tests for empty global config and local env files to streamline testing focus on actual config loading logic.
- Removed test for prioritizing local env over global config due to changes in config loading strategy, simplifying the configuration management.

* new version

---------

Co-authored-by: Takanori Matsumoto <matscube@gmail.com>
Co-authored-by: Moret84 <aurelienrivet@hotmail.fr>
Co-authored-by: yowatari <4982161+YOwatari@users.noreply.github.com>
Co-authored-by: metavind <94786679+metavind@users.noreply.github.com>
2024-05-05 19:07:55 +03:00
di-sukharev 670a758bee 3.0.12 2024-03-18 15:22:13 +08:00
digitalstudium a192441f68 Switch ollama api endpoint from /api/generate to /api/chat (#304)
* 3.0.11

* build

* docs: update ollama usage readme (#301)

Signed-off-by: Albert Simon <albert.simon.sge@mango.com>
Co-authored-by: Albert Simon <albert.simon.sge@mango.com>

* 🚨 BREAKING CHANGES 🚨

- feat(engine/ollama): add support for local models and change prompt format to improve AI performance
+ fix(engine/ollama): fix issue with local model not responding correctly to requests

The commit message is now more concise, clear, and informative. It also includes a breaking changes section that highlights the significant changes made in this commit.

---------

Signed-off-by: Albert Simon <albert.simon.sge@mango.com>
Co-authored-by: di-sukharev <dim.sukharev@gmail.com>
Co-authored-by: Albert Simon <47634918+willyw0nka@users.noreply.github.com>
Co-authored-by: Albert Simon <albert.simon.sge@mango.com>
Co-authored-by: Константин Шуткин <shutkin-kn@mosmetro.ru>
2024-03-08 10:08:52 +08:00
di-sukharev 75d0f57f09 3.0.10 2024-03-03 19:44:30 +08:00
di-sukharev 02cef105a6 3.0.9 2024-02-28 19:29:17 +08:00
di-sukharev 62e44e5e35 3.0.8 2024-02-28 19:19:41 +08:00
di-sukharev 6155fca4b1 3.0.7 2024-02-28 19:19:09 +08:00
di-sukharev 53ae8926fa 3.0.6 2024-02-27 22:17:06 +08:00
di-sukharev 5f85cafc7e 3.0.5 2024-02-27 22:07:16 +08:00
Jaroslaw Weber 1d6980faf3 add ollama support (#269)
* add ollama support

---------

Co-authored-by: di-sukharev <dim.sukharev@gmail.com>
Co-authored-by: GPT10 <57486732+di-sukharev@users.noreply.github.com>
Co-authored-by: Jaroslaw Weber <jaroslaw.weber@adriel.com>
2024-02-27 22:01:13 +08:00
Sébastien Fichot 12956d7633 feat: Integrate @commitlint for Enhanced Commit Message Generation and Configuration Support (#209)
* add commitlint support
* refactor code
* improve readme text
2023-09-03 14:00:18 +08:00
di-sukharev 916ddf02d1 2.4.2 2023-07-05 15:20:11 +08:00
di-sukharev 3a7f2d69e7 2.4.1 2023-07-05 15:19:29 +08:00
di-sukharev 04ee73ca9d 2.4.0 2023-07-05 15:18:19 +08:00
di-sukharev 91885cdd1c 2.3.0 2023-07-05 15:18:02 +08:00
di-sukharev cad179953a 2.2.10 2023-05-26 13:14:42 +08:00
di-sukharev 792ab67ef1 2.2.9 2023-05-26 13:12:00 +08:00
di-sukharev f69e716dcc 2.2.8 2023-05-26 13:10:29 +08:00
di-sukharev 56e02f2604 2.2.7 2023-05-26 13:08:08 +08:00
di-sukharev c491fa4bad 2.2.6 2023-05-26 12:57:38 +08:00
di-sukharev 5f9f29c467 2.2.5 2023-05-26 12:55:14 +08:00
di-sukharev fad05e0757 2.2.4 2023-05-26 12:52:00 +08:00
di-sukharev 6490532818 2.2.3 2023-05-26 12:43:53 +08:00
di-sukharev 75fa04efd4 2.2.2 2023-05-26 12:42:47 +08:00
di-sukharev ce47c1fe81 2.2.1 2023-05-26 12:37:20 +08:00
di-sukharev 44c9d48eae 2.1.1 2023-05-26 12:22:15 +08:00
Moulick Aggarwal 34775e9e69 Remove oc alias (#178)
oc is pretty wellknow alias for OpenShift CLI

Signed-off-by: Moulick Aggarwal <moulickaggarwal@gmail.com>
2023-05-26 12:05:18 +08:00
Hiro 3f3043c48e doc: add timeout-minutes to workflow (#186)
* 2.0.18

* patch

* 2.0.19

* style(.prettierrc): reorder properties to follow alphabetical order and improve readability

* doc: add timeout-minutes to workflow

---------

Co-authored-by: di-sukharev <dim.sukharev@gmail.com>
2023-05-26 11:55:31 +08:00
di-sukharev 0d8469ee42 2.0.17 2023-05-21 16:18:15 +08:00
di-sukharev 6aff5ebef4 2.0.16 2023-05-21 16:16:45 +08:00
Sukharev 6afa493726 GitHub action (#173) (#174)
* add option to run OpenCommit as a Github Action
2023-05-21 16:16:26 +08:00
di-sukharev 54006826f8 2.0.15 2023-05-19 13:47:51 +08:00
di-sukharev f674e2d99a 2.0.14 2023-05-19 13:47:45 +08:00
di-sukharev 598881a41c 2.0.13 2023-05-04 16:38:35 +08:00
di-sukharev 1080544631 2.0.12 2023-05-04 16:38:28 +08:00
di-sukharev 5addb7df25 2.0.11 2023-05-04 14:29:11 +08:00
di-sukharev e447575980 2.0.10 2023-05-04 14:29:05 +08:00
di-sukharev dab0f58d14 2.0.9 2023-05-04 12:52:22 +08:00
di-sukharev 226e21c28f 2.0.8 2023-05-04 12:52:14 +08:00
di-sukharev 4deaf56e5a 2.0.7 2023-05-04 12:42:30 +08:00
di-sukharev 7c1fc10248 2.0.6 2023-05-04 12:42:24 +08:00
di-sukharev 0c25a9e32c Merge branch 'dev' 2023-05-04 12:41:35 +08:00
Juan José López Lira 3f5df6ef7c Bugfix/increase tokens (#132)
* feat(api.ts): add support for OPENAI_MAX_TOKENS environment variable
feat(config.ts): add OPENAI_MAX_TOKENS to CONFIG_KEYS and configValidators

* 2.0.2

* 2.0.3

* docs(README.md): add GPT-4 usage instructions and mention the cost difference compared to GPT-3.5-turbo

---------

Co-authored-by: di-sukharev <dim.sukharev@gmail.com>
2023-05-04 12:33:06 +08:00
di-sukharev 6cb85e40e9 2.0.5 2023-04-28 15:36:53 +08:00
di-sukharev ba82d4d476 2.0.4 2023-04-28 15:36:45 +08:00
di-sukharev f6ab25ed1b 2.0.3 2023-04-28 15:31:54 +08:00
di-sukharev 83abd5ffd6 2.0.2 2023-04-28 15:31:46 +08:00
di-sukharev a8a548ba5a 2.0.1 2023-04-28 14:15:39 +08:00
di-sukharev eb09d5f4f6 Merge remote-tracking branch 'origin/dev' 2023-04-28 14:13:49 +08:00