Skip to content

Commit b565347

Browse files
authored
integrate atest-ext-ai plugin into auto-build process (#835)
1 parent d8c0de4 commit b565347

File tree

4 files changed

+59
-1
lines changed

4 files changed

+59
-1
lines changed

cmd/testdata/stores.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,30 @@ stores:
66
url: xxx
77
readonly: false
88
disabled: false
9+
- name: ai
10+
kind:
11+
name: atest-ext-ai
12+
enabled: true
13+
url: ""
14+
readonly: false
15+
disabled: false
16+
properties:
17+
- key: "provider"
18+
description: "AI provider (local, openai, claude)"
19+
defaultValue: "local"
20+
- key: "model"
21+
description: "AI model name"
22+
defaultValue: "codellama"
23+
- key: "endpoint"
24+
description: "AI service endpoint"
25+
defaultValue: "http://localhost:11434"
926
plugins:
1027
- name: atest-store-git
1128
url: unix:///tmp/atest-store-git.sock
1229
enabled: true
30+
- name: atest-ext-ai
31+
url: unix:///tmp/atest-ext-ai.sock
32+
enabled: true
33+
description: "AI Extension Plugin for intelligent SQL generation and execution"
34+
version: "latest"
35+
registry: "ghcr.io/linuxsuren/atest-ext-ai"

console/atest-desktop/forge.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ module.exports = {
7171
7272
</Product>`
7373
);
74+
75+
// Ensure INSTALLDIR is properly defined in the existing ProgramFilesFolder
76+
msiCreator.wixTemplate = msiCreator.wixTemplate.replace(
77+
'<Directory Id="ProgramFilesFolder">',
78+
`<Directory Id="ProgramFilesFolder">
79+
<Directory Id="INSTALLDIR" Name="API Testing" />`
80+
);
7481
}
7582
}
7683
}

console/atest-ui/src/views/store.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const ExtensionKindRedis = "atest-store-redis"
3838
const ExtensionKindMongoDB = "atest-store-mongodb"
3939
const ExtensionKindElasticsearch = "atest-store-elasticsearch"
4040
const ExtensionKindOpengeMini = "atest-store-opengemini"
41+
const ExtensionKindAI = "atest-ext-ai"
4142

4243
export const ExtensionKind = {
4344
ExtensionKindGit,
@@ -49,7 +50,8 @@ export const ExtensionKind = {
4950
ExtensionKindRedis,
5051
ExtensionKindMongoDB,
5152
ExtensionKindElasticsearch,
52-
ExtensionKindOpengeMini
53+
ExtensionKindOpengeMini,
54+
ExtensionKindAI
5355
}
5456

5557
const MySQL = "mysql";

sample/ai-extension.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
stores:
2+
- name: ai
3+
kind:
4+
name: atest-ext-ai
5+
enabled: true
6+
url: ""
7+
readonly: false
8+
disabled: false
9+
properties:
10+
- key: "provider"
11+
description: "AI provider (local, openai, claude)"
12+
defaultValue: "local"
13+
- key: "model"
14+
description: "AI model name"
15+
defaultValue: "codellama"
16+
- key: "endpoint"
17+
description: "AI service endpoint"
18+
defaultValue: "http://localhost:11434"
19+
20+
plugins:
21+
- name: atest-ext-ai
22+
url: unix:///tmp/atest-ext-ai.sock
23+
enabled: true
24+
description: "AI Extension Plugin for intelligent SQL generation and execution"
25+
version: "latest"
26+
registry: "ghcr.io/linuxsuren/atest-ext-ai"

0 commit comments

Comments
 (0)