Files
NebulaShell/.vscode/launch.json
Falck f5c659b665 🔧 修复P0级问题:40+文件语法错误 + import路径 + 清理废弃代码
 跟项目能跑起来就差这一步!这次狠狠修了一波:

🩺 修复40+损坏Python文件
   - 补全所有缺少的class定义头(plugin-loader-pro、code-reviewer、
     http-api/ws-api/http-tcp、webui/dashboard/log-terminal 等)
   - 修复中文括号、字符串未闭合、缩进错乱等语法问题

🔗 创建符号链接 plugin_bridge -> plugin-bridge
   - 解决Python模块路径不支持连字符的问题
   - 关联修复 plugin-bridge 中错误的 import 路径

🧹 清理废弃代码
   - 删除 oss/tui/ 目录(已废弃)
   - 清理所有 __pycache__ 和 .pyc 缓存文件

 全量语法检查通过,零错误!
📋 ai.md 新增代码审计报告和分阶段修复计划
🗺️ 所有插件 use() 调用现在走统一路径
2026-05-03 09:26:47 +08:00

241 lines
6.5 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"version": "0.2.0",
"configurations": [
{
"name": "NebulaShell: 启动服务",
"type": "python",
"request": "launch",
"module": "oss.cli",
"args": ["serve"],
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试模式启动",
"type": "python",
"request": "launch",
"module": "oss.cli",
"args": ["serve", "--debug"],
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1",
"LOG_LEVEL": "DEBUG"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 运行测试",
"type": "python",
"request": "launch",
"module": "pytest",
"args": [
"-v",
"--tb=short",
"--cov=oss",
"--cov-report=html",
"--cov-report=term"
],
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试插件加载器",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/oss/plugin/loader.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试日志终端插件",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/store/NebulaShell/log-terminal/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试WebUI",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/store/NebulaShell/webui/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试HTTP API",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/store/NebulaShell/http-api/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试WS API",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/store/NebulaShell/ws-api/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 调试特定文件",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell: 附加到进程",
"type": "python",
"request": "attach",
"processId": "${command:pickProcess}",
"host": "localhost",
"port": 5678,
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
],
"justMyCode": false
},
{
"name": "NebulaShell: 运行CLI命令",
"type": "python",
"request": "launch",
"module": "oss.cli",
"args": ["${input:cliCommand}"],
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONUNBUFFERED": "1"
},
"cwd": "${workspaceFolder}",
"python": "${command:python.interpreterPath}"
},
{
"name": "NebulaShell 网站: 启动Node.js服务器",
"type": "node",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/website/src/server.js",
"outFiles": [
"${workspaceFolder}/website/**/*.js"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"NODE_ENV": "development"
},
"autoAttachChildProcesses": true,
"sourceMaps": true,
"showAsyncStacks": true,
"smartStep": true,
"pauseForSourceMap": true,
"cwd": "${workspaceFolder}/website"
},
{
"name": "NebulaShell 网站: 开发模式启动",
"type": "node",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"NODE_ENV": "development"
},
"autoAttachChildProcesses": true,
"sourceMaps": true,
"cwd": "${workspaceFolder}/website"
},
{
"name": "NebulaShell 网站: 附加到Node.js进程",
"type": "node",
"request": "attach",
"port": 9229,
"skipFiles": [
"<node_internals>/**"
],
"restart": true,
"localRoot": "${workspaceFolder}/website",
"remoteRoot": "${workspaceFolder}/website"
}
],
"inputs": [
{
"id": "cliCommand",
"type": "promptString",
"description": "输入要执行的CLI命令install, uninstall, list等",
"default": "help"
}
],
"compounds": [
{
"name": "NebulaShell: 完整调试环境",
"configurations": [
"NebulaShell: 启动服务",
"NebulaShell: 调试日志终端插件"
],
"stopAll": true
}
]
}