Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b69922f
Issue #2: Add AI proto interface extensions
KariHall619 Sep 8, 2025
8846c88
Issue #3: Generate gRPC code for AI proto extensions
KariHall619 Sep 8, 2025
5ec17fd
Issue #4: Add comprehensive AI proto interface validation tests
KariHall619 Sep 8, 2025
9eb03de
Issue #5: Implement HTTP API for AI functionality
KariHall619 Sep 8, 2025
42d2c6f
Issue #6: Implement Plugin Communication Bridge
KariHall619 Sep 8, 2025
1eb067a
feat: Issue #7 - ExtManager Enhancement for AI Plugin Management
KariHall619 Sep 9, 2025
e1e8466
feat: Issue #8 - Frontend Integration for AI Plugin System
KariHall619 Sep 10, 2025
97d6e47
feat: Issue #9 - Integration Testing & Documentation (Complete)
KariHall619 Sep 10, 2025
7cb3840
refactor: remove AI plugin implementation files from main project
KariHall619 Sep 11, 2025
3f7002f
fix:编译和单元测试检查
KariHall619 Sep 11, 2025
62cd355
test: 完善前端测试环境配置和AI组件测试
KariHall619 Sep 11, 2025
203afe8
fix: 替换jest-fetch-mock为Vitest原生fetch mock,完全修复前端测试
KariHall619 Sep 11, 2025
962b369
refactor: implement interface segregation for ExtManager
KariHall619 Sep 11, 2025
e4c9e81
test: complete Phase 3 - remove AI-specific test files and verify uni…
KariHall619 Sep 11, 2025
17e82ec
fix: correct configDir parameter for GetPluginsByCategory method
KariHall619 Sep 11, 2025
5fb711a
fix: use only existing repository links in test extension.yaml
KariHall619 Sep 11, 2025
43b3f9c
feat: complete Phase 4 - frontend integration with unified plugin man…
KariHall619 Sep 11, 2025
8e10bee
refactor: remove all AI-specific protobuf definitions and dead code
KariHall619 Sep 11, 2025
36f2738
refactor: 移除不必要的AI相关组件和测试代码
KariHall619 Sep 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ e2e/server.srl
e2e/server.key
e2e/server.csr
e2e/server.crt

atest

*.md
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (o *serverOption) runE(cmd *cobra.Command, args []string) (err error) {
extDownloader := downloader.NewStoreDownloader()
extDownloader.WithRegistry(o.extensionRegistry)
extDownloader.WithTimeout(o.downloadTimeout)
storeExtMgr := server.NewStoreExtManager(o.execer)
storeExtMgr := server.NewStoreExtManager(o.execer, o.configDir)
storeExtMgr.WithDownloader(extDownloader)
remoteServer := server.NewRemoteServer(loader, remote.NewGRPCloaderFromStore(), secretServer, storeExtMgr, o.configDir, o.grpcMaxRecvMsgSize)
if stores, storeErr := remoteServer.GetStores(ctx, nil); storeErr == nil {
Expand Down
128 changes: 59 additions & 69 deletions console/atest-ui/package-lock.json

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

1 change: 1 addition & 0 deletions console/atest-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"eslint-plugin-cypress": "^5.1.0",
"eslint-plugin-vue": "^9.32.0",
"fetch-mock-jest": "^1.5.1",
"happy-dom": "^18.0.1",
"jest": "^29.6.1",
"jest-fetch-mock": "^3.0.3",
"jsdom": "^26.1.0",
Expand Down
6 changes: 3 additions & 3 deletions console/atest-ui/src/views/__test__/net.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
import {API} from '../net'
import { type TestCase } from '../net'
import { SetupStorage } from './common'
import fetchMock from "jest-fetch-mock";
import { fetchMock } from '../../test-setup'
import { vi } from 'vitest'

Check warning on line 21 in console/atest-ui/src/views/__test__/net.spec.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

console/atest-ui/src/views/__test__/net.spec.ts#L21

'vi' is defined but never used.

fetchMock.enableMocks();
SetupStorage()

beforeEach(() => {
fetchMock.resetMocks();
fetchMock.mockClear();
});

describe('net', () => {
Expand Down
5 changes: 2 additions & 3 deletions console/atest-ui/src/views/__test__/types.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

import { NewSuggestedAPIsQuery, CreateFilter, GetHTTPMethods, FlattenObject } from '../types'
import type { Pair } from '../types'
import fetchMock from "jest-fetch-mock";

fetchMock.enableMocks();
import { fetchMock } from '../../test-setup'

Check warning on line 19 in console/atest-ui/src/views/__test__/types.spec.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

console/atest-ui/src/views/__test__/types.spec.ts#L19

'fetchMock' is defined but never used.
import { vi } from 'vitest'

Check warning on line 20 in console/atest-ui/src/views/__test__/types.spec.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

console/atest-ui/src/views/__test__/types.spec.ts#L20

'vi' is defined but never used.

describe('NewSuggestedAPIsQuery', () => {
test('empty data', () => {
Expand Down
2 changes: 2 additions & 0 deletions console/atest-ui/src/views/net.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ limitations under the License.
*/
import { Cache } from './cache'


/**
* Process HTTP response with proper content type handling
*
Expand Down Expand Up @@ -1017,6 +1018,7 @@ const GetBinding = (name: string, callback: (d: any) => void | null) => {
.then(DefaultResponseProcess).then(callback)
}


export const API = {
DefaultResponseProcess,
GetVersion, GetSchema, GetMenus, GetPageOfJS, GetPageOfCSS,
Expand Down
4 changes: 2 additions & 2 deletions console/atest-ui/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export default mergeConfig(
viteConfig,
defineConfig({
test: {
globals:true,
// environment: 'jsdom',
globals: true,
environment: 'happy-dom',
exclude: [...configDefaults.exclude, 'e2e/*'],
root: fileURLToPath(new URL('./', import.meta.url)),
setupFiles: ['src/test-setup.ts'],
transformMode: {
web: [/\.[jt]sx$/]
}
Expand Down
Loading
Loading