Просмотр исходного кода

Add 'git show' to auto-executable allow-list

John Stearns 1 год назад
Родитель
Сommit
9153a962e5
4 измененных файлов с 136 добавлено и 16 удалено
  1. BIN
      bin/roo-cline-1.0.5.vsix
  2. 131 11
      package-lock.json
  3. 3 3
      package.json
  4. 2 2
      src/core/Cline.ts

BIN
bin/roo-cline-1.0.4.vsix → bin/roo-cline-1.0.5.vsix


Разница между файлами не показана из-за своего большого размера
+ 131 - 11
package-lock.json


+ 3 - 3
package.json

@@ -2,7 +2,7 @@
   "name": "roo-cline",
   "displayName": "Roo Cline",
   "description": "Autonomous coding agent right in your IDE, capable of creating/editing files, running commands, using the browser, and more with your permission every step of the way.",
-  "version": "1.0.4",
+  "version": "1.0.5",
   "icon": "assets/icons/icon.png",
   "galleryBanner": {
     "color": "#617A91",
@@ -142,7 +142,9 @@
     "@typescript-eslint/parser": "^7.11.0",
     "@vscode/test-cli": "^0.0.9",
     "@vscode/test-electron": "^2.4.0",
+    "esbuild": "^0.24.0",
     "eslint": "^8.57.0",
+    "jest": "^29.7.0",
     "npm-run-all": "^4.1.5",
     "ts-jest": "^29.2.5",
     "typescript": "^5.4.5"
@@ -163,11 +165,9 @@
     "default-shell": "^2.2.0",
     "delay": "^6.0.0",
     "diff": "^5.2.0",
-    "esbuild": "^0.24.0",
     "fast-deep-equal": "^3.1.3",
     "globby": "^14.0.2",
     "isbinaryfile": "^5.0.2",
-    "jest": "^29.7.0",
     "mammoth": "^1.8.0",
     "monaco-vscode-textmate-theme-converter": "^0.1.7",
     "openai": "^4.61.0",

+ 2 - 2
src/core/Cline.ts

@@ -56,13 +56,13 @@ type UserContent = Array<
 	Anthropic.TextBlockParam | Anthropic.ImageBlockParam | Anthropic.ToolUseBlockParam | Anthropic.ToolResultBlockParam
 >
 
-// Add near the top of the file, after imports:
 const ALLOWED_AUTO_EXECUTE_COMMANDS = [
 	'npm',
 	'npx',
 	'tsc',
 	'git log',
 	'git diff',
+	'git show',
 	'list'
 ] as const
 
@@ -134,7 +134,7 @@ export class Cline {
 		}
 	}
 
-	protected isAllowedCommand(command?: string): boolean {
+	private isAllowedCommand(command?: string): boolean {
 		if (!command) {
 			return false;
 		}

Некоторые файлы не были показаны из-за большого количества измененных файлов