Skip to content

Commit

Permalink
feat: refactor controllers and socket actions
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Dec 23, 2024
1 parent 36615e8 commit 53a01e6
Show file tree
Hide file tree
Showing 211 changed files with 5,569 additions and 3,442 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"unused-imports/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_|[pP]rops$"
"argsIgnorePattern": "^_|[pP]rops|[cC]ontext$"
}
],
"@typescript-eslint/return-await": "off",
Expand Down
250 changes: 156 additions & 94 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,32 @@
"vscode": "^1.93.0"
},
"activationEvents": [
"onStartupFinished"
"onStartupFinished",
"onView:aide-sidebar-view"
],
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "aide",
"id": "aide-sidebar-view",
"title": "AIDE",
"icon": "res/icon-mask.png"
}
]
},
"views": {
"aide": [
"aide-sidebar-view": [
{
"type": "webview",
"id": "aide.webview",
"id": "aide-webview",
"name": "AIDE"
}
],
"explorer": [
{
"id": "aide.chatHistoriesTree",
"name": "%view.chatHistoriesTree%"
}
]
},
"commands": [
Expand Down Expand Up @@ -169,6 +176,35 @@
"command": "aide.inlineDiff.showError",
"title": "%command.inlineDiff.showError%",
"enablement": "false"
},
{
"command": "aide.action",
"title": "%command.action%"
},
{
"command": "aide.chatHistoriesTree.refresh",
"title": "%command.chatHistoriesTree.refresh%",
"icon": "$(refresh)"
},
{
"command": "aide.chatHistoriesTree.deleteCheckedSessions",
"title": "%command.chatHistoriesTree.deleteCheckedSessions%",
"icon": "$(trash)"
},
{
"command": "aide.chatHistoriesTree.createAndOpenSession",
"title": "%command.chatHistoriesTree.createAndOpenSession%",
"icon": "$(plus)"
},
{
"command": "aide.chatHistoriesTree.deleteSession",
"title": "%command.chatHistoriesTree.deleteSession%",
"icon": "$(trash)"
},
{
"command": "aide.chatHistoriesTree.duplicateSession",
"title": "%command.chatHistoriesTree.duplicateSession%",
"icon": "$(copy)"
}
],
"menus": {
Expand Down Expand Up @@ -228,6 +264,30 @@
"command": "aide.expertCodeEnhancer",
"group": "navigation@3"
}
],
"view/title": [
{
"command": "aide.chatHistoriesTree.createAndOpenSession",
"when": "view == aide.chatHistoriesTree",
"group": "navigation"
},
{
"command": "aide.chatHistoriesTree.refresh",
"when": "view == aide.chatHistoriesTree",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "aide.chatHistoriesTree.deleteSession",
"when": "view == aide.chatHistoriesTree && viewItem =~ /action:deleteSession/",
"group": "inline"
},
{
"command": "aide.chatHistoriesTree.duplicateSession",
"when": "view == aide.chatHistoriesTree && viewItem =~ /action:duplicateSession/",
"group": "inline"
}
]
},
"configuration": {
Expand Down Expand Up @@ -376,74 +436,74 @@
},
"devDependencies": {
"@atao60/fse-cli": "^0.1.9",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/cz-commitlint": "^19.5.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@commitlint/cz-commitlint": "^19.6.1",
"@cyntler/react-doc-viewer": "^1.17.0",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^3.9.1",
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"@langchain/anthropic": "^0.3.8",
"@langchain/community": "^0.3.14",
"@langchain/core": "0.3.18",
"@langchain/langgraph": "^0.2.20",
"@langchain/openai": "^0.3.13",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@langchain/anthropic": "^0.3.11",
"@langchain/community": "^0.3.19",
"@langchain/core": "0.3.26",
"@langchain/langgraph": "^0.2.34",
"@langchain/openai": "^0.3.16",
"@langchain/textsplitters": "^0.1.0",
"@lexical/react": "^0.20.0",
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-alert-dialog": "^1.1.2",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-context-menu": "^2.2.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-hover-card": "^1.1.2",
"@radix-ui/react-icons": "^1.3.1",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-menubar": "^1.1.2",
"@radix-ui/react-popover": "^1.1.2",
"@radix-ui/react-progress": "^1.1.0",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-scroll-area": "^1.2.1",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slider": "^1.2.1",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.4",
"@radix-ui/react-visually-hidden": "^1.1.0",
"@tanstack/react-query": "^5.59.20",
"@tomjs/vite-plugin-vscode": "^3.1.1",
"@lexical/react": "^0.21.0",
"@radix-ui/react-accordion": "^1.2.2",
"@radix-ui/react-alert-dialog": "^1.1.4",
"@radix-ui/react-checkbox": "^1.1.3",
"@radix-ui/react-context-menu": "^2.2.4",
"@radix-ui/react-dialog": "^1.1.4",
"@radix-ui/react-dropdown-menu": "^2.1.4",
"@radix-ui/react-hover-card": "^1.1.4",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.1",
"@radix-ui/react-menubar": "^1.1.4",
"@radix-ui/react-popover": "^1.1.4",
"@radix-ui/react-progress": "^1.1.1",
"@radix-ui/react-radio-group": "^1.2.2",
"@radix-ui/react-scroll-area": "^1.2.2",
"@radix-ui/react-select": "^2.1.4",
"@radix-ui/react-slider": "^1.2.2",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-switch": "^1.1.2",
"@radix-ui/react-tabs": "^1.1.2",
"@radix-ui/react-tooltip": "^1.1.6",
"@radix-ui/react-visually-hidden": "^1.1.1",
"@tanstack/react-query": "^5.62.8",
"@tomjs/vite-plugin-vscode": "^3.2.1",
"@types/diff": "^6.0.0",
"@types/fs-extra": "^11.0.4",
"@types/global-agent": "^2.1.3",
"@types/node": "^22.9.0",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@types/node": "^22.10.2",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@types/shell-quote": "^1.7.5",
"@types/turndown": "^5.0.5",
"@types/vscode": "1.93.0",
"@types/vscode-webview": "^1.57.5",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-react": "^4.3.4",
"@vscode/vsce": "^3.2.1",
"@xenova/transformers": "^2.17.2",
"apache-arrow": "^18.0.0",
"apache-arrow": "^18.1.0",
"autoprefixer": "^10.4.20",
"babel-plugin-react-compiler": "19.0.0-beta-a7bf2bd-20241110",
"chalk": "^5.3.0",
"babel-plugin-react-compiler": "^19.0.0-beta-201e55d-20241215",
"chalk": "^5.4.1",
"cheerio": "^1.0.0",
"class-variance-authority": "^0.7.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.0.4",
"color2k": "^2.0.3",
"comment-json": "^4.2.5",
"commitizen": "^4.3.1",
"cpy": "10.1.0",
"diff": "^7.0.0",
"es-toolkit": "^1.27.0",
"es-toolkit": "^1.30.1",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^18.0.0",
Expand All @@ -457,88 +517,90 @@
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unused-imports": "^3.2.0",
"esno": "^4.8.0",
"execa": "^9.5.1",
"eventemitter3": "^5.0.1",
"execa": "^9.5.2",
"find-free-ports": "^3.1.1",
"flexsearch": "^0.7.43",
"framer-motion": "12.0.0-alpha.1",
"framer-motion": "12.0.0-alpha.2",
"fs-extra": "^11.2.0",
"glob": "^11.0.0",
"global-agent": "^3.0.0",
"html-react-parser": "^5.1.18",
"husky": "^9.1.6",
"html-react-parser": "^5.2.1",
"husky": "^9.1.7",
"ignore": "^6.0.2",
"immer": "^10.1.1",
"inquirer": "^9.3.4",
"js-tiktoken": "^1.0.15",
"knip": "^5.36.7",
"langchain": "^0.3.5",
"lexical": "^0.20.0",
"lint-staged": "^15.2.10",
"js-tiktoken": "^1.0.16",
"knip": "^5.41.1",
"langchain": "^0.3.7",
"lexical": "^0.21.0",
"lint-staged": "^15.2.11",
"lowdb": "^7.0.1",
"lucide-react": "^0.461.0",
"mermaid": "^11.4.0",
"lucide-react": "^0.469.0",
"mermaid": "^11.4.1",
"minimatch": "^10.0.1",
"next-themes": "^0.4.3",
"p-limit": "^6.1.0",
"pnpm": "^9.12.3",
"next-themes": "^0.4.4",
"p-limit": "^6.2.0",
"pnpm": "^9.15.1",
"postcss": "^8.4.49",
"prettier": "^3.3.3",
"react": "19.0.0-rc-ed15d500-20241110",
"react-dom": "19.0.0-rc-ed15d500-20241110",
"react-error-boundary": "^4.1.2",
"react-hook-form": "^7.53.2",
"react-intersection-observer": "^9.13.1",
"prettier": "^3.4.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-error-boundary": "^5.0.0",
"react-hook-form": "^7.54.2",
"react-intersection-observer": "^9.14.0",
"react-markdown": "^9.0.1",
"react-resizable-panels": "^2.1.6",
"react-router": "^6.28.0",
"react-router-dom": "^6.28.0",
"react-resizable-panels": "^2.1.7",
"react-router": "^7.1.0",
"react-router-dom": "^7.1.0",
"react-shiki": "^0.1.2",
"react-use": "^17.5.1",
"react-use": "^17.6.0",
"rehype-katex": "^7.0.1",
"rehype-raw": "^7.0.0",
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"rimraf": "^6.0.1",
"scroll-into-view-if-needed": "^3.1.0",
"shell-quote": "^1.8.1",
"shiki": "^1.22.2",
"shell-quote": "^1.8.2",
"shiki": "^1.24.4",
"simple-git": "^3.27.0",
"socket.io": "^4.8.1",
"socket.io-client": "^4.8.1",
"sonner": "^1.7.0",
"sonner": "^1.7.1",
"strip-ansi": "^7.1.0",
"tailwind-merge": "^2.5.4",
"tailwindcss": "^3.4.14",
"tailwind-merge": "^2.5.5",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"to-fast-properties": "2.0.0",
"tree-sitter-wasms": "^0.1.12",
"tsup": "^8.3.5",
"turndown": "^7.2.0",
"typed.js": "^2.1.0",
"typescript": "5.4.5",
"undici": "^6.20.1",
"typescript": "5.7.2",
"undici": "^7.2.0",
"unified": "^11.0.5",
"use-immer": "^0.10.0",
"use-immer": "^0.11.0",
"use-resize-observer": "^9.1.0",
"uuid": "^11.0.3",
"vaul": "^1.1.1",
"vectordb": "^0.12.0",
"vite": "^5.4.11",
"vite-plugin-pages": "^0.32.3",
"vaul": "^1.1.2",
"vectordb": "^0.14.0",
"vite": "^6.0.5",
"vite-plugin-pages": "^0.32.4",
"vite-plugin-svgr": "^4.3.0",
"vite-tsconfig-paths": "^5.1.2",
"vitest": "^2.1.4",
"web-tree-sitter": "^0.24.4",
"zod": "^3.23.8",
"zustand": "^5.0.1"
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^2.1.8",
"web-tree-sitter": "^0.24.5",
"zod": "^3.24.1",
"zustand": "^5.0.2"
},
"pnpm": {
"overrides": {
"@langchain/core": "0.3.18",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"lexical": "^0.20.0",
"shiki": "^1.22.2"
"@langchain/core": "0.3.26",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"lexical": "^0.21.0",
"shiki": "^1.24.4"
}
},
"commitlint": {
Expand Down
7 changes: 7 additions & 0 deletions package.nls.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"command.quickCloseFileWithoutSave": "Quick close",
"command.replaceFile": "Replace original",
"command.showDiff": "Compare original",
"command.action": "Execute Action",
"command.chatHistoriesTree.refresh": "Refresh Chat Histories",
"command.chatHistoriesTree.deleteCheckedSessions": "Delete Checked Chat Histories",
"command.chatHistoriesTree.createAndOpenSession": "Create and Open Chat",
"command.chatHistoriesTree.deleteSession": "Delete Chat",
"command.chatHistoriesTree.duplicateSession": "Duplicate Chat",
"view.chatHistoriesTree": "Aide Chat Histories",
"config.title": "Aide Configuration",
"config.openaiKey.description": "OpenAI Key, [click to view online documentation](https://aide.nicepkg.cn/guide/getting-started/how-to-configure-openai-key) or [I Don't Have an OpenAI Key](https://aide.nicepkg.cn/guide/getting-started/how-to-configure-openai-key#i-don-t-have-an-openai-key)",
"config.openaiModel.description": "OpenAI Model, [click to view online documentation](https://aide.nicepkg.cn/guide/configuration/openai-model)",
Expand Down
7 changes: 7 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
"command.quickCloseFileWithoutSave": "Quick close",
"command.replaceFile": "Replace original",
"command.showDiff": "Compare original",
"command.action": "Execute Action",
"command.chatHistoriesTree.refresh": "Refresh Chat Histories",
"command.chatHistoriesTree.deleteCheckedSessions": "Delete Checked Chat Histories",
"command.chatHistoriesTree.createAndOpenSession": "Create and Open Chat",
"command.chatHistoriesTree.deleteSession": "Delete Chat",
"command.chatHistoriesTree.duplicateSession": "Duplicate Chat",
"view.chatHistoriesTree": "Aide Chat Histories",
"config.title": "Aide Configuration",
"config.openaiKey.description": "OpenAI Key, [click to view online documentation](https://aide.nicepkg.cn/guide/getting-started/how-to-configure-openai-key) or [I Don't Have an OpenAI Key](https://aide.nicepkg.cn/guide/getting-started/how-to-configure-openai-key#i-don-t-have-an-openai-key)",
"config.openaiModel.description": "OpenAI Model, [click to view online documentation](https://aide.nicepkg.cn/guide/configuration/openai-model)",
Expand Down
Loading

0 comments on commit 53a01e6

Please sign in to comment.