- 添加 pnpm workspace 和 Turborepo 配置 - 创建 packages/shared 共享类型和工具 - 创建 packages/core-sdk 核心 SDK - 创建 packages/vscode-extension VSCode 插件 - 创建 packages/jetbrains-plugin JetBrains 插件基础结构 - 添加 README 文档
131 lines
3.3 KiB
JSON
131 lines
3.3 KiB
JSON
{
|
|
"name": "ide-data-collector-vscode",
|
|
"displayName": "IDE Data Collector",
|
|
"description": "AI编程工具数据采集插件 - 评估AI代码助手效率",
|
|
"version": "0.1.0",
|
|
"publisher": "devtools-ai",
|
|
"engines": {
|
|
"vscode": "^1.85.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"keywords": [
|
|
"ai",
|
|
"copilot",
|
|
"analytics",
|
|
"productivity"
|
|
],
|
|
"activationEvents": [
|
|
"onStartupFinished"
|
|
],
|
|
"main": "./dist/extension.js",
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "ide-collector.toggle",
|
|
"title": "Toggle Data Collection",
|
|
"category": "IDE Collector"
|
|
},
|
|
{
|
|
"command": "ide-collector.showDashboard",
|
|
"title": "Show Dashboard",
|
|
"category": "IDE Collector"
|
|
},
|
|
{
|
|
"command": "ide-collector.openSettings",
|
|
"title": "Open Settings",
|
|
"category": "IDE Collector"
|
|
},
|
|
{
|
|
"command": "ide-collector.syncNow",
|
|
"title": "Sync Now",
|
|
"category": "IDE Collector"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"title": "IDE Data Collector",
|
|
"properties": {
|
|
"ideCollector.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable/disable data collection"
|
|
},
|
|
"ideCollector.apiEndpoint": {
|
|
"type": "string",
|
|
"default": "http://localhost:8000/api/v1/events",
|
|
"description": "API endpoint for data reporting"
|
|
},
|
|
"ideCollector.samplingRate": {
|
|
"type": "number",
|
|
"default": 1.0,
|
|
"minimum": 0,
|
|
"maximum": 1,
|
|
"description": "Sampling rate (0-1)"
|
|
},
|
|
"ideCollector.batchSize": {
|
|
"type": "number",
|
|
"default": 50,
|
|
"description": "Batch size for event upload"
|
|
},
|
|
"ideCollector.flushInterval": {
|
|
"type": "number",
|
|
"default": 60,
|
|
"description": "Flush interval in seconds"
|
|
},
|
|
"ideCollector.anonymizeUser": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Anonymize user ID"
|
|
},
|
|
"ideCollector.obfuscateCode": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Obfuscate code content"
|
|
}
|
|
}
|
|
},
|
|
"viewsContainers": {
|
|
"activitybar": [
|
|
{
|
|
"id": "ide-collector",
|
|
"title": "IDE Collector",
|
|
"icon": "resources/icon.svg"
|
|
}
|
|
]
|
|
},
|
|
"views": {
|
|
"ide-collector": [
|
|
{
|
|
"id": "ide-collector.status",
|
|
"name": "Status"
|
|
},
|
|
{
|
|
"id": "ide-collector.stats",
|
|
"name": "Statistics"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "pnpm run build",
|
|
"build": "tsup src/extension.ts --format cjs --external vscode",
|
|
"dev": "tsup src/extension.ts --format cjs --external vscode --watch",
|
|
"lint": "eslint src --ext .ts",
|
|
"test": "vitest run",
|
|
"package": "vsce package --no-dependencies",
|
|
"publish": "vsce publish --no-dependencies"
|
|
},
|
|
"dependencies": {
|
|
"@ide-collector/core-sdk": "workspace:*",
|
|
"@ide-collector/shared": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/vscode": "^1.85.0",
|
|
"@vscode/vsce": "^2.22.0",
|
|
"tsup": "^8.0.0",
|
|
"vitest": "^1.0.0"
|
|
}
|
|
}
|
|
|