diff --git a/out/cli.cjs b/out/cli.cjs index 2b9eeba..9be5f2b 100755 --- a/out/cli.cjs +++ b/out/cli.cjs @@ -28111,7 +28111,7 @@ function G3(t2, e3) { // package.json var package_default = { name: "opencommit", - version: "3.0.16", + version: "3.0.17", description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}", keywords: [ "git", @@ -28157,7 +28157,8 @@ var package_default = { "dev:gemini": "OCO_AI_PROVIDER='gemini' ts-node ./src/cli.ts", build: "rimraf out && node esbuild.config.js", "build:push": "npm run build && git add . && git commit -m 'build' && git push", - deploy: "npm version patch && npm run build:push && git push --tags && npm publish --tag latest", + deploy: "npm run build:push && git push --tags && npm publish --tag latest", + "deploy:patch": "npm version patch && npm run deploy", lint: "eslint src --ext ts && tsc --noEmit", format: "prettier --write src", test: "node --no-warnings --experimental-vm-modules $( [ -f ./node_modules/.bin/jest ] && echo ./node_modules/.bin/jest || which jest ) test/unit", @@ -30687,7 +30688,8 @@ var MODEL_LIST = { "gpt-4o-mini-2024-07-18" ], anthropic: [ - "claude-3-haiku-20240307", + "claude-3-5-sonnet-20240620", + "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-opus-20240229" ], diff --git a/out/github-action.cjs b/out/github-action.cjs index 3698726..87b2a09 100644 --- a/out/github-action.cjs +++ b/out/github-action.cjs @@ -49498,7 +49498,8 @@ var MODEL_LIST = { "gpt-4o-mini-2024-07-18" ], anthropic: [ - "claude-3-haiku-20240307", + "claude-3-5-sonnet-20240620", + "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-opus-20240229" ], diff --git a/package.json b/package.json index 723bd81..73cc2d7 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,8 @@ "dev:gemini": "OCO_AI_PROVIDER='gemini' ts-node ./src/cli.ts", "build": "rimraf out && node esbuild.config.js", "build:push": "npm run build && git add . && git commit -m 'build' && git push", - "deploy": "npm version patch && npm run build:push && git push --tags && npm publish --tag latest", + "deploy": "npm run build:push && git push --tags && npm publish --tag latest", + "deploy:patch": "npm version patch && npm run deploy", "lint": "eslint src --ext ts && tsc --noEmit", "format": "prettier --write src", "test": "node --no-warnings --experimental-vm-modules $( [ -f ./node_modules/.bin/jest ] && echo ./node_modules/.bin/jest || which jest ) test/unit", diff --git a/src/commands/config.ts b/src/commands/config.ts index 2d0dbe7..8987144 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -395,7 +395,7 @@ export const getConfig = ({ OCO_GITPUSH: process.env.OCO_GITPUSH === 'false' ? false : true, OCO_ONE_LINE_COMMIT: process.env.OCO_ONE_LINE_COMMIT === 'true' ? true : false, - OCO_AZURE_ENDPOINT: process.env.OCO_AZURE_ENDPOINT || '', + OCO_AZURE_ENDPOINT: process.env.OCO_AZURE_ENDPOINT || undefined, OCO_TEST_MOCK_TYPE: process.env.OCO_TEST_MOCK_TYPE || 'commit-message' }; diff --git a/src/i18n/zh_CN.json b/src/i18n/zh_CN.json index 897ffc1..8a25af3 100644 --- a/src/i18n/zh_CN.json +++ b/src/i18n/zh_CN.json @@ -1,6 +1,6 @@ { "localLanguage": "简体中文", - "commitFix": "修复(server.ts):将端口变量从小写port改为大写PORT", - "commitFeat": "功能(server.ts):添加对process.env.PORT环境变量的支持", + "commitFix": "fix(server.ts):将端口变量从小写port改为大写PORT", + "commitFeat": "feat(server.ts):添加对process.env.PORT环境变量的支持", "commitDescription": "现在端口变量被命名为PORT,这提高了命名约定的一致性,因为PORT是一个常量。环境变量的支持使应用程序更加灵活,因为它现在可以通过process.env.PORT环境变量在任何可用端口上运行。" }