Skip to content

Commit 7157fb7

Browse files
committed
v0.7.19
- Optimize the ACE tool to reduce context usage - Remove the /models command to strengthen the /profiles command and panel functionality - Enhance the coverage of the default sensitive command panel (database operation commands) - Add more effective points to the theme system and introduce a new built-in theme
1 parent db0a0b6 commit 7157fb7

87 files changed

Lines changed: 2976 additions & 3889 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ jobs:
5656
5757
### What's New
5858
59-
- Optimize rendering performance of all panels
60-
- Add input box real terminal cursor
61-
- Optimize think field return for chat requests
59+
- Optimize the ACE tool to reduce context usage
60+
- Remove the /models command to strengthen the /profiles command and panel functionality
61+
- Enhance the coverage of the default sensitive command panel (database operation commands)
62+
- Add more effective points to the theme system and introduce a new built-in theme
6263
6364
### Installation
6465
```bash

docs/usage/en/09.Command Panel Guide.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -477,28 +477,24 @@ Create a scheduled loop task.
477477

478478
### `/profiles`
479479

480-
Open the profile switch panel.
480+
Open the profile and model switching panel.
481481

482-
- **Function**: Open the Profile selection panel (used to switch configuration profiles)
483-
- **Use Cases**: Use when keyboard shortcuts conflict or are inconvenient
484-
- **Example**: Type `/profiles` to open the profile selection panel
485-
486-
### `/models`
487-
488-
Open model switching panel.
489-
490-
- **Function**: Open the model switching panel to quickly switch the AI model in use
482+
- **Function**: Open the Profile panel to switch configuration profiles and AI model settings
491483
- **Features**:
492-
- Display available model list from the currently configured API provider
493-
- Support search filtering for models
484+
- Switch between different configuration profiles
485+
- Switch the AI model in use
486+
- Support search filtering
494487
- Switch conversation model in real-time
495488
- Support switching thinking intensity settings (for models with thinking capabilities)
496-
- **Panel Tabs**:
497-
- **Advanced**: Advanced model settings
498-
- **Basic**: Basic model settings
499-
- **Thinking**: Thinking feature configuration (show thinking process, enable thinking, thinking intensity, etc.)
500-
- **Use Cases**: Need to quickly switch between different AI models for conversation, or adjust model thinking intensity
501-
- **Example**: Type `/models` to open the model selection panel
489+
- **Panel Operations**:
490+
- `↑/↓` - Move selection up/down
491+
- `Tab` - Open the detail edit panel for the focused profile (without switching the active profile)
492+
- `Enter` - Switch to the selected profile (set as active)
493+
- `Backspace/Delete` - Delete the last character of the search query
494+
- Type characters directly - Filter the profile list by search query
495+
- `ESC` - Close panel
496+
- **Use Cases**: Use when keyboard shortcuts conflict or are inconvenient; also useful for quickly switching AI models
497+
- **Example**: Type `/profiles` to open the profile and model selection panel
502498

503499
## Custom Extension Commands
504500

docs/usage/zh/09.指令面板说明.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -477,28 +477,24 @@ Git 分支管理。
477477

478478
### `/profiles`
479479

480-
打开配置文件切换面板
480+
打开配置文件与模型切换面板
481481

482-
- **作用**: 打开 Profile(配置文件)选择面板(用于切换配置)
483-
- **使用场景**: 快捷键冲突或不方便按键时,可直接通过命令打开面板
484-
- **示例**: 输入 `/profiles` 打开配置选择面板
485-
486-
### `/models`
487-
488-
打开模型切换面板。
489-
490-
- **作用**: 打开模型切换面板,快速切换当前使用的 AI 模型
482+
- **作用**: 打开 Profile 面板,支持切换配置文件及 AI 模型相关设置
491483
- **功能**:
492-
- 显示当前配置的 API 提供商的可用模型列表
493-
- 支持搜索过滤模型
484+
- 切换不同的配置文件(Profile)
485+
- 切换当前使用的 AI 模型
486+
- 支持搜索过滤
494487
- 实时切换对话使用的模型
495488
- 支持切换思考强度设置(适用于支持思考功能的模型)
496-
- **面板标签**:
497-
- **Advanced**: 高级模型设置
498-
- **Basic**: 基础模型设置
499-
- **Thinking**: 思考功能配置(显示思考过程、启用思考、思考强度等)
500-
- **使用场景**: 需要快速切换不同的 AI 模型进行对话,或调整模型的思考强度
501-
- **示例**: 输入 `/models` 打开模型选择面板
489+
- **面板操作**:
490+
- `↑/↓` - 上下移动选择
491+
- `Tab` - 进入当前焦点 Profile 的详情编辑面板(不切换 active)
492+
- `Enter` - 切换为选中的 Profile(设为 active)
493+
- `Backspace/Delete` - 删除搜索关键词末尾字符
494+
- 直接输入字符 - 搜索过滤 Profile 列表
495+
- `ESC` - 关闭面板
496+
- **使用场景**: 快捷键冲突或不方便按键时,可直接通过命令打开面板;也可用于快速切换 AI 模型
497+
- **示例**: 输入 `/profiles` 打开配置与模型选择面板
502498

503499
## 自定义扩展指令
504500

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "snow-ai",
3-
"version": "0.7.18",
3+
"version": "0.7.19",
44
"description": "Agentic coding in your terminal",
55
"license": "MIT",
66
"bin": {

source/agents/bashOutputSummaryAgent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {getOpenAiConfig} from '../utils/config/apiConfig.js';
1+
import {getSnowConfig} from '../utils/config/apiConfig.js';
22
import {logger} from '../utils/core/logger.js';
33
import {createStreamingChatCompletion, type ChatMessage} from '../api/chat.js';
44
import {createStreamingResponse} from '../api/responses.js';
@@ -18,7 +18,7 @@ export class BashOutputSummaryAgent {
1818

1919
private async initialize(): Promise<boolean> {
2020
try {
21-
const config = getOpenAiConfig();
21+
const config = getSnowConfig();
2222
if (!config.basicModel) {
2323
return false;
2424
}

source/agents/codebaseReviewAgent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {getOpenAiConfig} from '../utils/config/apiConfig.js';
1+
import {getSnowConfig} from '../utils/config/apiConfig.js';
22
import {logger} from '../utils/core/logger.js';
33
import {createStreamingChatCompletion, type ChatMessage} from '../api/chat.js';
44
import {createStreamingResponse} from '../api/responses.js';
@@ -65,7 +65,7 @@ export class CodebaseReviewAgent {
6565
*/
6666
private async initialize(): Promise<boolean> {
6767
try {
68-
const config = getOpenAiConfig();
68+
const config = getSnowConfig();
6969

7070
if (!config.basicModel) {
7171
logger.warn(

source/agents/compactAgent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {getOpenAiConfig} from '../utils/config/apiConfig.js';
1+
import {getSnowConfig} from '../utils/config/apiConfig.js';
22
import {logger} from '../utils/core/logger.js';
33
import {createStreamingChatCompletion, type ChatMessage} from '../api/chat.js';
44
import {createStreamingResponse} from '../api/responses.js';
@@ -37,7 +37,7 @@ export class CompactAgent {
3737
*/
3838
private async initialize(): Promise<boolean> {
3939
try {
40-
const config = getOpenAiConfig();
40+
const config = getSnowConfig();
4141

4242
// Check if basic model is configured
4343
if (!config.basicModel) {
@@ -87,7 +87,7 @@ export class CompactAgent {
8787
abortSignal?: AbortSignal,
8888
onTokenUpdate?: (tokenCount: number) => void,
8989
): Promise<string> {
90-
const config = getOpenAiConfig();
90+
const config = getSnowConfig();
9191

9292
if (!config.basicModel) {
9393
throw new Error('Basic model not configured');

source/agents/reviewAgent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
getOpenAiConfig,
2+
getSnowConfig,
33
getCustomSystemPrompt,
44
} from '../utils/config/apiConfig.js';
55
import {logger} from '../utils/core/logger.js';
@@ -23,7 +23,7 @@ export class ReviewAgent {
2323
*/
2424
private async initialize(): Promise<boolean> {
2525
try {
26-
const config = getOpenAiConfig();
26+
const config = getSnowConfig();
2727

2828
if (!config.advancedModel) {
2929
return false;
@@ -430,7 +430,7 @@ Please provide your review in a clear, structured format.`;
430430
messages: ChatMessage[],
431431
abortSignal?: AbortSignal,
432432
): AsyncGenerator<any, void, unknown> {
433-
const config = getOpenAiConfig();
433+
const config = getSnowConfig();
434434

435435
if (!config.advancedModel) {
436436
throw new Error('Advanced model not configured');

source/agents/summaryAgent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {getOpenAiConfig} from '../utils/config/apiConfig.js';
1+
import {getSnowConfig} from '../utils/config/apiConfig.js';
22
import {logger} from '../utils/core/logger.js';
33
import {createStreamingChatCompletion, type ChatMessage} from '../api/chat.js';
44
import {createStreamingResponse} from '../api/responses.js';
@@ -30,7 +30,7 @@ export class SummaryAgent {
3030
*/
3131
private async initialize(): Promise<boolean> {
3232
try {
33-
const config = getOpenAiConfig();
33+
const config = getSnowConfig();
3434

3535
// Use basicModel first, fallback to advancedModel if not configured
3636
const basicModel = config.basicModel?.trim();

0 commit comments

Comments
 (0)