Skip to content

Commit

Permalink
📝 docs(changelog): 发布 0.4.0 版本并更新配置文件
Browse files Browse the repository at this point in the history
- 更新版本号至 0.4.0
- 添加周报生成相关配置项【features.weeklyReport】
- 更新 CHANGELOG.md 文档,记录新版本变更
- 新增 Gemini 模型支持
  • Loading branch information
littleCareless committed Dec 13, 2024
1 parent 7471d2c commit 911ed64
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 12 deletions.
21 changes: 18 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
# Changelog
# Changelog

[English](CHANGELOG.md) | [简体中文](CHANGELOG.zh-CN.md)
[English](CHANGELOG.md) | [简体中文](CHANGELOG.zh-CN.md)

All notable changes to this project will be documented in this file.
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/)
# 0.4.0 (2024-12-13)


### ✨ Features

* **周报**: 添加周报生成功能配置和国际化支持 ([7471d2c](https://github.com/littleCareless/dish-ai-commit/commit/7471d2c))


### 📝 Documentation

* **changelog**: 发布 0.3.0 版本并更新文档 ([cd0f05e](https://github.com/littleCareless/dish-ai-commit/commit/cd0f05e))





# 0.3.0 (2024-12-13)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dish-ai-commit",
"displayName": "Dish AI Commit Gen",
"description": "Use AI to assist in generating standardized Git/SVN submission information VSCode extensions. Support OpenAI, Olama, and VSCode built-in AI services.",
"version": "0.3.0",
"version": "0.4.0",
"engines": {
"vscode": "^1.95.0"
},
Expand Down Expand Up @@ -129,7 +129,8 @@
"VS Code Provided",
"ZhipuAI",
"DashScope",
"Doubao"
"Doubao",
"Gemini"
]
},
"dish-ai-commit.base.model": {
Expand Down Expand Up @@ -201,7 +202,7 @@
"dish-ai-commit.features.weeklyReport.systemPrompt": {
"type": "string",
"default": "",
"description": "自定义周报生成的系统提示词"
"description": "Custom system prompt"
}
}
},
Expand Down
13 changes: 10 additions & 3 deletions src/config/ConfigSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ export const CONFIG_SCHEMA = {
description: "在提交信息中使用 emoji",
},
},
// 周报生成相关功能
weeklyReport: {
systemPrompt: {
type: "string",
description: "Custom system prompt",
default: "",
},
},
},
} as const;

Expand Down Expand Up @@ -346,7 +354,7 @@ export function generateConfiguration(
// 添加配置路径生成函数
export function getAllConfigPaths(schema: typeof CONFIG_SCHEMA): string[] {
const paths: string[] = [];

function traverse(obj: ConfigObject, currentPath: string = ""): void {
for (const [key, value] of Object.entries(obj)) {
const newPath = currentPath ? `${currentPath}.${key}` : key;
Expand All @@ -367,6 +375,5 @@ export function getCategoryConfigPaths(
schema: typeof CONFIG_SCHEMA,
category: keyof typeof CONFIG_SCHEMA
): string[] {
return getAllConfigPaths(schema)
.filter(path => path.startsWith(category));
return getAllConfigPaths(schema).filter((path) => path.startsWith(category));
}
4 changes: 3 additions & 1 deletion src/config/generated/configKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ export const CONFIG_KEYS = {
"FEATURES_CODEANALYSIS_CONTEXTLINES": "dish-ai-commit.features.codeAnalysis.contextLines",
"FEATURES_COMMITFORMAT": "dish-ai-commit.features.commitFormat",
"FEATURES_COMMITFORMAT_ENABLEMERGECOMMIT": "dish-ai-commit.features.commitFormat.enableMergeCommit",
"FEATURES_COMMITFORMAT_ENABLEEMOJI": "dish-ai-commit.features.commitFormat.enableEmoji"
"FEATURES_COMMITFORMAT_ENABLEEMOJI": "dish-ai-commit.features.commitFormat.enableEmoji",
"FEATURES_WEEKLYREPORT": "dish-ai-commit.features.weeklyReport",
"FEATURES_WEEKLYREPORT_SYSTEMPROMPT": "dish-ai-commit.features.weeklyReport.systemPrompt"
} as const;

0 comments on commit 911ed64

Please sign in to comment.