package.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "vsix-cp-ai-ctx",
  3. "displayName": "Copy AI Context",
  4. "description": "Copy code context for AI assistants — selected code, file contents, with paths and formatting",
  5. "version": "0.1.1",
  6. "publisher": "your-publisher",
  7. "engines": {
  8. "vscode": "^1.85.0"
  9. },
  10. "categories": ["Other"],
  11. "keywords": ["ai", "context", "copy", "clipboard", "chatgpt", "claude", "pi"],
  12. "activationEvents": [],
  13. "main": "./dist/extension.js",
  14. "contributes": {
  15. "commands": [
  16. {
  17. "command": "vsix-cp-ai-ctx.copySelection",
  18. "title": "复制 AI 上下文: 选区"
  19. },
  20. {
  21. "command": "vsix-cp-ai-ctx.copyFile",
  22. "title": "复制 AI 上下文: 文件"
  23. },
  24. {
  25. "command": "vsix-cp-ai-ctx.copyWorkspaceFiles",
  26. "title": "复制 AI 上下文: 工作区文件"
  27. },
  28. {
  29. "command": "vsix-cp-ai-ctx.copySelectedFiles",
  30. "title": "复制 AI 上下文: 选中文件"
  31. }
  32. ],
  33. "keybindings": [
  34. {
  35. "command": "vsix-cp-ai-ctx.copySelection",
  36. "key": "ctrl+alt+c",
  37. "mac": "cmd+alt+c"
  38. },
  39. {
  40. "command": "vsix-cp-ai-ctx.copyFile",
  41. "key": "ctrl+alt+f",
  42. "mac": "cmd+alt+f"
  43. }
  44. ],
  45. "menus": {
  46. "editor/context": [
  47. {
  48. "command": "vsix-cp-ai-ctx.copySelection",
  49. "when": "editorHasSelection",
  50. "group": "9_cutcopypaste@10"
  51. }
  52. ],
  53. "explorer/context": [
  54. {
  55. "command": "vsix-cp-ai-ctx.copyFile",
  56. "when": "!editorHasSelection && !explorerResourceIsFolder",
  57. "group": "9_cutcopypaste@10"
  58. },
  59. {
  60. "command": "vsix-cp-ai-ctx.copySelectedFiles",
  61. "when": "explorerResourceIsFolder",
  62. "group": "9_cutcopypaste@10"
  63. },
  64. {
  65. "command": "vsix-cp-ai-ctx.copySelectedFiles",
  66. "when": "listMultiSelection && explorerViewletVisible",
  67. "group": "9_cutcopypaste@10"
  68. }
  69. ]
  70. }
  71. },
  72. "scripts": {
  73. "vscode:prepublish": "node esbuild.js --minify",
  74. "build": "node esbuild.js",
  75. "watch": "node esbuild.js --watch",
  76. "lint": "eslint src --ext .ts",
  77. "package": "vsce package --out ./dist/",
  78. "publish": "vsce publish"
  79. },
  80. "devDependencies": {
  81. "@types/vscode": "^1.85.0",
  82. "@types/node": "^20.0.0",
  83. "esbuild": "^0.20.0",
  84. "typescript": "^5.3.0",
  85. "eslint": "^8.56.0",
  86. "@typescript-eslint/eslint-plugin": "^6.0.0",
  87. "@typescript-eslint/parser": "^6.0.0",
  88. "@vscode/vsce": "^2.22.0"
  89. },
  90. "repository": {
  91. "type": "git",
  92. "url": "https://git.ooo.ink/vsix/vsix-cp-ai-ctx.git"
  93. }
  94. }