package.json 2.3 KB

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