{
  "name": "web-sentinel-vscode",
  "displayName": "Web Sentinel Security Scanner",
  "description": "Analyse de sécurité de code source directement dans VS Code",
  "version": "1.0.0",
  "publisher": "web-sentinel",
  "engines": {
    "vscode": "^1.74.0"
  },
  "categories": [
    "Linters",
    "Other"
  ],
  "keywords": [
    "security",
    "vulnerability",
    "scanner",
    "sast",
    "web-sentinel"
  ],
  "activationEvents": [
    "onLanguage:php",
    "onLanguage:javascript",
    "onLanguage:python",
    "onLanguage:java",
    "onLanguage:csharp",
    "onLanguage:go"
  ],
  "main": "./out/extension.js",
  "contributes": {
    "commands": [
      {
        "command": "web-sentinel.scanFile",
        "title": "🔍 Scan Current File",
        "category": "Web Sentinel"
      },
      {
        "command": "web-sentinel.scanWorkspace", 
        "title": "🔍 Scan Workspace",
        "category": "Web Sentinel"
      },
      {
        "command": "web-sentinel.scanDomain",
        "title": "🌐 Scan Domain",
        "category": "Web Sentinel"
      }
    ],
    "menus": {
      "explorer/context": [
        {
          "when": "resourceExtname == .php || resourceExtname == .js || resourceExtname == .py || resourceExtname == .java",
          "command": "web-sentinel.scanFile",
          "group": "web-sentinel"
        }
      ],
      "editor/context": [
        {
          "command": "web-sentinel.scanFile",
          "group": "web-sentinel",
          "when": "editorTextFocus"
        }
      ]
    },
    "configuration": {
      "title": "Web Sentinel",
      "properties": {
        "webSentinel.apiUrl": {
          "type": "string",
          "default": "https://api.web-sentinel.taaazzz-prog.fr",
          "description": "URL de l'API Web Sentinel"
        },
        "webSentinel.apiKey": {
          "type": "string",
          "description": "Clé API Web Sentinel (requise)"
        },
        "webSentinel.autoScan": {
          "type": "boolean",
          "default": false,
          "description": "Scanner automatiquement à la sauvegarde"
        },
        "webSentinel.severityLevel": {
          "type": "string",
          "enum": ["info", "low", "medium", "high", "critical"],
          "default": "medium",
          "description": "Niveau de sévérité minimum à afficher"
        }
      }
    }
  },
  "scripts": {
    "vscode:prepublish": "npm run compile",
    "compile": "tsc -p ./",
    "watch": "tsc -watch -p ./"
  },
  "devDependencies": {
    "@types/vscode": "^1.74.0",
    "@types/node": "16.x",
    "typescript": "^4.9.4"
  },
  "dependencies": {
    "axios": "^1.0.0"
  }
}