Commit Graph

  • 809f5ff5f7 Fix [Bug]: punycode` module is deprecated #426 (#433) Tiger Kaovilai 2024-11-20 05:49:23 -05:00
  • eca4083a04 Feat/add user input code context (#420) Welington Sampaio 2024-11-20 07:47:58 -03:00
  • 0f315ae793 Merge remote-tracking branch 'origin/master' into dev di-sukharev 2024-11-19 18:59:27 +01:00
  • 25105e4c3a docs(CONTRIBUTING.md): update links to point to the correct repository name for consistency and clarity di-sukharev 2024-09-07 19:11:37 +03:00
  • 2769121842 3.2.2 (#413) GPT8 2024-09-07 18:17:17 +03:00
  • 31200609b6 fix migrations (#414) GPT8 2024-09-07 18:10:15 +03:00
  • d990bf0bf5 build fix_migrations di-sukharev 2024-09-07 18:07:02 +03:00
  • 119fedad53 fix(commit.ts): update error handling to provide clearer feedback when commit message generation fails feat(config.ts): add cleanUndefinedValues function to sanitize config values by converting 'undefined' and 'null' strings to actual values refactor(config.ts): return cleaned config from getConfig function to ensure consistent data types chore(migrations): log entriesToSet in migration to assist with debugging and tracking changes di-sukharev 2024-09-07 18:06:53 +03:00
  • 3493cbb42c build di-sukharev 2024-09-07 18:06:39 +03:00
  • 2c07d5be44 refactor(config.ts): improve code readability by formatting array elements and conditions fix(migrations): handle undefined values correctly when setting default config values fix(migrations): ensure process exits with error code on migration failure di-sukharev 2024-09-07 18:06:20 +03:00
  • 03b570c85c 3.2.2 di-sukharev 2024-09-07 15:16:19 +03:00
  • e3529e9ca7 Merge remote-tracking branch 'origin/master' into dev di-sukharev 2024-09-07 15:16:10 +03:00
  • 2d7e3842d6 feat(config): add support for groq AI provider, including config validation and engine implementation (#381) BILLY Maxime 2024-09-07 14:03:25 +02:00
  • 8ae927e2dc build di-sukharev 2024-09-06 13:59:28 +03:00
  • 2859d4ebe3 3.2.1 v3.2.1 di-sukharev 2024-09-06 13:59:25 +03:00
  • 306522e796 3.2.0 (#412) GPT8 2024-09-06 13:58:54 +03:00
  • a91aa3b4de update deploy commands di-sukharev 2024-09-06 12:17:37 +03:00
  • f46336b86a 3.2.0 di-sukharev 2024-09-06 12:15:18 +03:00
  • f975e49760 refactoring v2 (#408) GPT8 2024-09-06 12:14:15 +03:00
  • 88d6a92567 fix gemini test refactoring_v2 di-sukharev 2024-09-06 12:10:21 +03:00
  • 36aab60393 Merge remote-tracking branch 'origin/dev' into refactoring_v2 di-sukharev 2024-09-06 12:07:25 +03:00
  • ba3c0b7e0b refactor(config.ts): remove unused setDefaultConfigValues function to clean up code feat(config.ts): create getIsGlobalConfigFileExist function to check for config file existence feat(migrations): add migration to set missing default values for configuration fix(migrations): update migration functions to improve clarity and functionality chore(migrations): register new migration for setting missing default values style(migrations): format code for better readability in migration files test(config.test.ts): update tests to improve readability and maintainability di-sukharev 2024-09-06 12:05:28 +03:00
  • fa1cf46050 Fix: a bug that causes an error when pushing without setting git remote (#396) Takanori Matsumoto 2024-09-05 00:42:54 +09:00
  • 5209610236 fix(config.ts): ensure setConfig is only called when there are entries to set to prevent unnecessary function calls feat(run.ts): add conditional to skip migrations if OCO_AI_PROVIDER is set to TEST to improve migration handling during testing di-sukharev 2024-09-04 11:54:54 +03:00
  • d1f03f1105 feat(config): rename OCO_OPENAI_API_KEY to OCO_API_KEY for consistency and clarity fix(config): add validation for OCO_WHY configuration key to ensure it is a boolean refactor(config): extract default config setting logic into setDefaultConfigValues function fix(cli): reorder function calls to ensure checkIsLatestVersion runs after runMigrations chore(migrations): update getConfig calls to disable caching and default value setting chore(migrations): remove obsolete configuration keys from global config file fix(migrations): improve migration logging with consistent output formatting style(migrations): enhance migration success and failure messages for better user feedback di-sukharev 2024-09-04 11:46:43 +03:00
  • 3df5b241dc fix(config.ts): set default values for OCO_TOKENS_MAX_INPUT and OCO_TOKENS_MAX_OUTPUT to ensure proper configuration refactor(generateCommitMessageFromGitDiff.ts): simplify MAX_TOKENS_INPUT and MAX_TOKENS_OUTPUT assignments by removing redundant default value logic di-sukharev 2024-09-04 11:04:44 +03:00
  • 5ddf2cb21a Merge remote-tracking branch 'origin/dev' into refactoring_v2 di-sukharev 2024-09-04 10:56:34 +03:00
  • 1d19ddd9e2 378: fix hook env (#402) GPT10 2024-09-03 13:14:45 +03:00
  • 1eaf5e2ad7 build 378_fix_hook_env di-sukharev 2024-09-03 13:14:29 +03:00
  • 47eb59d665 Merge remote-tracking branch 'origin/dev' into 378_fix_hook_env di-sukharev 2024-09-03 13:14:10 +03:00
  • c6b6b2f3fd chore(package.json): remove unused dependency "ai" to clean up package.json fix(commit.ts): update success message to start with a lowercase letter for consistency di-sukharev 2024-09-03 13:13:38 +03:00
  • e1ce774538 chore(config): remove debug console logs to clean up the codebase feat(migrations): add migration to remove obsolete config keys from global file to streamline configuration management di-sukharev 2024-09-02 12:29:41 +03:00
  • f1ea54cf1c feat(docs): update README to reflect changes in API key and URL configuration for better clarity and usability feat(migrations): implement migration to consolidate API key and URL into a single configuration for improved simplicity refactor(config): rename configuration keys to use a single API key and URL for all LLM providers, enhancing consistency fix(engine): update engine initialization to use new unified API key and URL configuration test(config): update tests to validate new configuration structure and ensure backward compatibility with existing setups di-sukharev 2024-09-02 12:25:49 +03:00
  • ccb7cd99e5 Merge branch 'dev' into refactoring_v2 di-sukharev 2024-09-02 11:13:57 +03:00
  • ce6ae0b514 refactor(engine): rename classes from FlowiseAi, Gemini, and OllamaAi to FlowiseEngine, GeminiEngine, and OllamaEngine for consistency and clarity fix(engine): update imports and instantiation of renamed classes in engine utility functions to ensure proper functionality di-sukharev 2024-09-02 11:13:49 +03:00
  • 69b3c00a52 docs(README): update OCO_AI_PROVIDER and OCO_MODEL instructions for clarity and add valid model name options to OCO_MODEL description update_ollama_docs di-sukharev 2024-09-02 11:13:02 +03:00
  • 6f4afbfb52 build di-sukharev 2024-09-02 10:19:33 +03:00
  • 796de7b07e 3.1.2 v3.1.2 di-sukharev 2024-09-02 10:19:31 +03:00
  • 9ad281a4ee 🔧 (ollama.ts): update client post request to use getUri method for endpoint URL construction (#404) unconstructive 2024-09-02 00:18:01 -07:00
  • ca4be719b2 Merge branch 'dev' into oco_find_v1 oco_find_v1 di-sukharev 2024-09-01 18:26:46 +03:00
  • 1ce357b023 Merge branch 'dev' of github.com:di-sukharev/opencommit into dev di-sukharev 2024-09-01 18:26:33 +03:00
  • 45dd07d229 Merge branch 'master' into dev di-sukharev 2024-09-01 18:26:20 +03:00
  • 5e37fd29b7 Merge remote-tracking branch 'origin/dev' into oco_find_v1 di-sukharev 2024-09-01 18:24:48 +03:00
  • fa164377e4 build di-sukharev 2024-09-01 18:23:16 +03:00
  • 0b89767de0 3.1.1 v3.1.1 di-sukharev 2024-09-01 18:23:14 +03:00
  • 2dded4caa4 v 3.1.0 (#397) GPT10 2024-09-01 18:21:56 +03:00
  • 670f74ebc7 398: make why configurable (#403) GPT10 2024-09-01 18:17:25 +03:00
  • 23a8d76977 build 398_make_why_configurable di-sukharev 2024-09-01 18:14:15 +03:00
  • 4387c12552 feat(config): add OCO_WHY configuration option to enable output of change explanations in commit messages docs(README): document the new OCO_WHY config option and its usage for outputting reasons for changes di-sukharev 2024-09-01 18:13:58 +03:00
  • 31fdd8473b fix(prepare-commit-msg-hook): update error handling to provide clearer instructions for setting API keys and improve user guidance di-sukharev 2024-09-01 16:38:05 +03:00
  • 89d2aa603b feat: support pnpm (#394) Aloha 2024-09-01 21:11:26 +08:00
  • 8702c17758 390 add config set tests (#399) GPT10 2024-09-01 13:28:06 +03:00
  • 68dc9c36eb fix(utils.ts): add existsSync check before removing temp directory to prevent errors if directory does not exist (#401) 390-add_config_set_tests Takanori Matsumoto 2024-09-01 17:56:13 +09:00
  • e063faa491 refactor(config.ts): extract default configuration to a constant for better maintainability and readability refactor(config.ts): improve initGlobalConfig function to accept a configPath parameter for flexibility feat(config.ts): enhance getConfig function to support separate paths for global and environment configurations test(config.test.ts): update tests to reflect changes in config handling and ensure proper functionality style(utils.ts): clean up code formatting for consistency and readability style(tsconfig.json): adjust formatting in tsconfig.json for better clarity and maintainability di-sukharev 2024-08-30 17:37:31 +03:00
  • c7b1a5bcdc refactor(commit.ts): rename spinner variables for clarity and consistency in commit message generation process fix(commit.ts): ensure proper stopping of spinners in case of errors during commit message generation and committing process di-sukharev 2024-08-30 14:24:18 +03:00
  • 92943d3da8 fix(commit.ts): improve user confirmation handling by exiting on cancel actions to prevent unintended behavior refactor(commit.ts): streamline conditional checks for user confirmations to enhance code readability and maintainability di-sukharev 2024-08-30 14:18:22 +03:00
  • 60597d23eb pump v to 3.1.0 di-sukharev 2024-08-27 17:31:40 +03:00
  • 6f04927369 build di-sukharev 2024-08-27 17:31:23 +03:00
  • 0c0cf9c627 Merge remote-tracking branch 'origin/master' into dev di-sukharev 2024-08-27 17:31:13 +03:00
  • 7286456a04 Merge remote-tracking branch 'origin/dev' into oco_find_v1 di-sukharev 2024-08-27 17:09:44 +03:00
  • 8fe8e614ac refactoring_v1 (#391) GPT10 2024-08-27 17:04:36 +03:00
  • 676c2b20c1 update package-lock.json refactoring_v1 di-sukharev 2024-08-27 16:58:22 +03:00
  • 21da102f6d Merge remote-tracking branch 'origin/dev' into refactoring_v1 di-sukharev 2024-08-27 16:57:54 +03:00
  • 6ae7ce2720 chore(config.ts): remove debug console log to clean up the code and improve readability di-sukharev 2024-08-27 16:49:17 +03:00
  • e44610fea3 chore(.gitignore): add notes.md to .gitignore to prevent tracking of notes files di-sukharev 2024-08-27 16:49:03 +03:00
  • 85468823f9 feat(package.json): add uglify-js dependency for JavaScript minification feat(find.ts): implement functions to find declarations and usages of functions, generate call hierarchy, and create mermaid diagrams for better visualization of code structure refactor(find.ts): improve findInFiles function to accept options for grep and enhance the handling of occurrences for better clarity and usability di-sukharev 2024-08-27 16:46:27 +03:00
  • 68c9ed359c fix(dependencies): update tr46, webidl-conversions, and whatwg-url to latest versions for compatibility and security improvements (#395) Takanori Matsumoto 2024-08-26 16:28:34 +09:00
  • 7eb9a1b45c rename azure method di-sukharev 2024-08-25 22:34:22 +03:00
  • 825c2fe825 feat(commands): remove CommandsEnum.ts and integrate commands into ENUMS.ts for better organization feat(cli): add findCommand to the CLI for enhanced functionality in searching fix(commitlint): correct capitalization in intro message for consistency fix(prepare-commit-msg-hook): correct capitalization in intro message for consistency refactor(utils): rename getOpenCommitIgnore to getIgnoredFolders for clarity and improve ignored folder retrieval logic di-sukharev 2024-08-24 20:17:16 +03:00
  • 9dcb264420 test(config.test.ts): refactor generateConfig function to accept an object for content to improve readability and maintainability di-sukharev 2024-08-20 21:36:00 +03:00
  • dd7fdba94e fix(config.ts): revert OCO_GITPUSH to its original position in the config object for clarity refactor(config.ts): rename configFromEnv to envConfig for better readability refactor(gemini.ts): simplify client initialization in the Gemini constructor test(config.test.ts): add test case to check overriding global config with null values in local .env test(gemini.test.ts): update AI provider assignment to use OCO_AI_PROVIDER_ENUM for consistency di-sukharev 2024-08-20 21:32:16 +03:00
  • 5fa12e2d4a feat(config): export OCO_AI_PROVIDER_ENUM to allow external access to AI provider constants refactor(config): simplify mergeObjects function to improve readability and maintainability refactor(setConfig): remove unnecessary keysToSet variable to streamline logging refactor(engine): update switch cases to use OCO_AI_PROVIDER_ENUM for better consistency and clarity di-sukharev 2024-08-20 15:37:41 +03:00
  • 42a36492ad build di-sukharev 2024-08-20 15:37:33 +03:00
  • 443d27fc8d chore(docs): mark "Push to git" section in README as deprecated to inform users of upcoming changes refactor(commit.ts): remove early return for non-pushing users to streamline commit process refactor(config.ts): add deprecation comments for OCO_GITPUSH to indicate future removal test(config.test.ts): enhance tests to ensure correct handling of local and global config priorities test(gemini.test.ts): improve tests for Gemini class to ensure proper functionality and error handling di-sukharev 2024-08-20 15:34:09 +03:00
  • 04991dd00f fix(engine.ts): include DEFAULT_CONFIG in Gemini and Azure engine instantiation to ensure consistent configuration across engines di-sukharev 2024-08-20 12:58:00 +03:00
  • 3ded6062c1 fix: remove optional chaining from config access to ensure compatibility and prevent potential runtime errors refactor(flowise.ts, ollama.ts): update axios client configuration to use a consistent URL format for API requests fix: update README example to reflect the removal of optional chaining in config access di-sukharev 2024-08-20 12:32:40 +03:00
  • f8584e7b78 refactor(engine): rename basePath to baseURL for consistency across interfaces and implementations fix(engine): update Azure and Flowise engines to use baseURL instead of basePath for API configuration fix(engine): adjust Ollama engine to handle baseURL and fallback to default URL style(engine): clean up constructor formatting in OpenAiEngine for better readability chore(engine): update getEngine function to use baseURL in configuration for all engines di-sukharev 2024-08-20 12:21:13 +03:00
  • 94faceefd3 remove mb confusing line di-sukharev 2024-08-20 12:06:01 +03:00
  • 720cd6f9c1 clear readme di-sukharev 2024-08-20 12:05:15 +03:00
  • b6a92d557f docs(README.md): update author section and clarify API key storage details docs(README.md): improve instructions for using OpenCommit CLI and configuration fix(README.md): correct default model name to gpt-4o-mini in usage examples fix(package.json): update openai package version to 4.56.0 for compatibility di-sukharev 2024-08-20 12:04:07 +03:00
  • 71354e4687 feat: add CommandsEnum to define command constants for better maintainability refactor(generateCommitMessageFromGitDiff): update types for OpenAI messages to improve type safety fix(commitlint/config): remove optional chaining for OCO_LANGUAGE to ensure proper access refactor(commitlint/prompts): update types for OpenAI messages to improve type safety refactor(prompts): update types for OpenAI messages to improve type safety di-sukharev 2024-08-20 12:03:40 +03:00
  • 8f85ee8f8e refactor(testAi.ts): update import statements to use OpenAI type for better clarity and maintainability fix(testAi.ts): change parameter type in generateCommitMessage method to align with OpenAI's updated type definitions di-sukharev 2024-08-20 12:01:51 +03:00
  • f9103a3c6a build di-sukharev 2024-08-20 12:01:38 +03:00
  • 4afd7de7a8 feat(commands): add COMMANDS enum to standardize command names across the application refactor(commit.ts): restructure generateCommitMessageFromGitDiff function to use an interface for parameters and improve readability fix(config.ts): update DEFAULT_TOKEN_LIMITS to correct values for max tokens input and output chore(config.ts): enhance config validation to handle undefined and null values more effectively style(commit.ts): improve formatting and consistency in the commit confirmation logic style(config.ts): clean up error messages and improve clarity in config setting process di-sukharev 2024-08-20 12:01:14 +03:00
  • 5cfa3cded2 feat(engine): refactor AI engine interfaces and implementations to support multiple AI providers and improve configurability di-sukharev 2024-08-20 11:58:19 +03:00
  • bb0b0e804e build di-sukharev 2024-08-20 11:56:44 +03:00
  • 5d87cc514b feat(ENUMS.ts): add ENUMS file to centralize command constants refactor(commitlint.ts): update import path to use ENUMS for command constants refactor(config.ts): update import path to use ENUMS for command constants refactor(githook.ts): update import path to use ENUMS for command constants fix(prompts.ts): correct conventional commit keywords instruction text di-sukharev 2024-08-19 14:09:27 +03:00
  • 6f4e8fde93 docs(README.md): update usage examples to remove redundant 'opencommit' command chore(example.txt): remove unused example.txt file fix(config.ts): correct import order and improve validation messages fix(githook.ts): improve error message for unsupported mode fix(azure.ts): add non-null assertion for message content fix(gemini.ts): use strict equality for role comparison refactor(generateCommitMessageFromGitDiff.ts): reorder imports for consistency refactor(github-action.ts): reorder imports for consistency refactor(prompts.ts): simplify prompt content generation and improve readability style(engine.ts): fix inconsistent spacing and import order di-sukharev 2024-08-19 14:00:08 +03:00
  • 745bb5218f update imports di-sukharev 2024-08-19 13:09:46 +03:00
  • 1b29f3a9fd build di-sukharev 2024-08-19 12:37:38 +03:00
  • 596dcd7cea 3.0.20 (#389) GPT10 2024-08-19 12:37:17 +03:00
  • eb3be62a4f 3.0.20 v3.0.20 di-sukharev 2024-08-19 12:34:35 +03:00
  • 58ad1880ef Merge remote-tracking branch 'origin/dev' into marcelwiegand-master marcelwiegand-master di-sukharev 2024-08-19 12:29:55 +03:00
  • 5ee17235cb 🐛(anthropic.ts): fix incorrect usage of 'typeof' operator for MODEL variable marcelwiegand 2024-08-19 11:13:37 +02:00
  • f9c7316eb3 🐛(openAi.ts): fix incorrect usage of 'typeof' operator for MODEL variable marcelwiegand 2024-08-19 11:13:09 +02:00
  • dfe2730a45 build di-sukharev 2024-08-19 10:42:36 +03:00
  • a979ba091a 3.0.19 (#384) GPT10 2024-08-19 10:41:26 +03:00
  • 6bbe07a9a1 build di-sukharev 2024-08-19 10:28:45 +03:00
  • 0156bb9dc9 3.0.19 v3.0.19 di-sukharev 2024-08-19 10:26:46 +03:00
  • e27bbd0ac1 fix(config.ts): move 'gpt-4o-mini' in MODEL_LIST docs(config.ts): update API key validation message with detailed instructions refactor(config.ts): simplify model validation logic to check for string type instead of MODEL_LIST di-sukharev 2024-08-19 10:25:24 +03:00