package.json 3.1 KB

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