package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "name": "copy-ai-ctx",
  3. "displayName": "Copy AI Ctx",
  4. "description": "复制上下文供AI助手使用 —— 复制文件、内容的引用信息",
  5. "version": "0.2.6",
  6. "publisher": "fivesay",
  7. "engines": {
  8. "vscode": "^1.85.0"
  9. },
  10. "categories": [
  11. "Other"
  12. ],
  13. "keywords": [
  14. "cpai",
  15. "ai",
  16. "context",
  17. "copy",
  18. "clipboard",
  19. "chatgpt",
  20. "claude",
  21. "pi"
  22. ],
  23. "activationEvents": [],
  24. "main": "./dist/extension.js",
  25. "contributes": {
  26. "commands": [
  27. {
  28. "command": "copy-ai-ctx.copySelection",
  29. "title": "Copy to AI: 选中区域"
  30. },
  31. {
  32. "command": "copy-ai-ctx.copyFile",
  33. "title": "Copy to AI: 当前文件"
  34. },
  35. {
  36. "command": "copy-ai-ctx.copySelectedFiles",
  37. "title": "Copy to AI: 单选"
  38. },
  39. {
  40. "command": "copy-ai-ctx.copyMultiFiles",
  41. "title": "Copy to AI: 多选"
  42. }
  43. ],
  44. "menus": {
  45. "editor/context": [
  46. {
  47. "command": "copy-ai-ctx.copySelection",
  48. "when": "editorHasSelection",
  49. "group": "9_cutcopypaste@10"
  50. },
  51. {
  52. "command": "copy-ai-ctx.copyFile",
  53. "when": "!editorHasSelection",
  54. "group": "9_cutcopypaste@10"
  55. }
  56. ],
  57. "explorer/context": [
  58. {
  59. "command": "copy-ai-ctx.copyMultiFiles",
  60. "when": "listMultiSelection && explorerViewletVisible",
  61. "group": "9_cutcopypaste@10"
  62. },
  63. {
  64. "command": "copy-ai-ctx.copySelectedFiles",
  65. "when": "!listMultiSelection",
  66. "group": "9_cutcopypaste@10",
  67. "title": "Copy to AI: 单选"
  68. }
  69. ]
  70. },
  71. "keybindings": [
  72. {
  73. "key": "shift+alt+c",
  74. "command": "copy-ai-ctx.copySelection",
  75. "when": "editorHasSelection"
  76. },
  77. {
  78. "key": "shift+alt+c",
  79. "command": "copy-ai-ctx.copyFile",
  80. "when": "!editorHasSelection && editorFocus"
  81. },
  82. {
  83. "key": "shift+alt+c",
  84. "command": "copy-ai-ctx.copySelectedFiles",
  85. "when": "explorerViewletVisible && !listMultiSelection"
  86. },
  87. {
  88. "key": "shift+alt+c",
  89. "command": "copy-ai-ctx.copyMultiFiles",
  90. "when": "explorerViewletVisible && listMultiSelection"
  91. }
  92. ]
  93. },
  94. "scripts": {
  95. "vscode:prepublish": "node esbuild.js --minify",
  96. "build": "node esbuild.js",
  97. "watch": "node esbuild.js --watch",
  98. "lint": "eslint src --ext .ts",
  99. "package": "vsce package --out ./dist/",
  100. "publish": "vsce publish"
  101. },
  102. "devDependencies": {
  103. "@types/node": "^20.0.0",
  104. "@types/vscode": "^1.85.0",
  105. "@typescript-eslint/eslint-plugin": "^6.0.0",
  106. "@typescript-eslint/parser": "^6.0.0",
  107. "@vscode/vsce": "^2.19.0",
  108. "esbuild": "^0.20.0",
  109. "eslint": "^8.56.0",
  110. "typescript": "^5.3.0"
  111. },
  112. "repository": {
  113. "type": "git",
  114. "url": "https://git.ooo.ink/vsix/vsix-copy-ai-ctx.git"
  115. }
  116. }