fix(observer): matchedType 대소문자 무시 — Always run이 permission으로 잘못 분류되는 문제 수정 (v0.5.88)

This commit is contained in:
Variet Worker
2026-04-19 08:01:47 +09:00
parent 7f33a20e43
commit db805c6fde
3 changed files with 5 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "gravity-bridge",
"version": "0.5.87",
"version": "0.5.88",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "gravity-bridge",
"version": "0.5.87",
"version": "0.5.88",
"dependencies": {
"cheerio": "^1.2.0",
"ws": "^8.19.0"

View File

@@ -2,7 +2,7 @@
"name": "gravity-bridge",
"displayName": "Gravity Bridge",
"description": "Discord-based unified approval system for Antigravity AI interactions.",
"version": "0.5.87",
"version": "0.5.88",
"publisher": "variet",
"engines": {
"vscode": "^1.100.0"

View File

@@ -1051,7 +1051,8 @@ export function generateApprovalObserverScript(_port: number): string {
continue;
}
var matchedType = txt.includes('Accept') ? 'diff_review' : (txt === 'Retry' ? 'retry' : (txt.includes('Run') || txt.includes('Allow') ? 'command' : 'permission'));
var txtLow = txt.toLowerCase();
var matchedType = txt.includes('Accept') ? 'diff_review' : (txt === 'Retry' ? 'retry' : (txtLow.includes('run') || txtLow.includes('allow') ? 'command' : 'permission'));
// v7: Use step-index for more unique group key
var stepContainer = getStepContainer(b);