package.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "copy-ai-ctx",
  3. "displayName": "Copy AI Ctx",
  4. "description": "复制上下文供AI助手使用 —— 复制文件、内容的引用信息",
  5. "version": "0.2.4",
  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. },
  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/node": "^20.0.0",
  82. "@types/vscode": "^1.85.0",
  83. "@typescript-eslint/eslint-plugin": "^6.0.0",
  84. "@typescript-eslint/parser": "^6.0.0",
  85. "@vscode/vsce": "^2.19.0",
  86. "esbuild": "^0.20.0",
  87. "eslint": "^8.56.0",
  88. "typescript": "^5.3.0"
  89. },
  90. "repository": {
  91. "type": "git",
  92. "url": "https://git.ooo.ink/vsix/vsix-copy-ai-ctx.git"
  93. }
  94. }