fix(observer): v12 — skip prompt-only code text + enrichment validation (v0.5.44) #task-619

- extractContextFromNearby: PROMPT_ONLY_RE skips code elements containing only terminal prompts (e.g. '\\gravity_control >')
- Multi-codeEl traversal: tries all code elements at each depth, picks longest non-prompt text
- http-bridge enrichment: validates extracted command is not just a prompt fragment before enriching
- Fixes: cmd='\\gravity_control >' (prompt-only) no longer sent to Discord as the command text
This commit is contained in:
Variet Worker
2026-04-15 07:43:15 +09:00
parent 59ddcbb612
commit 7ee5947b32
3 changed files with 43 additions and 19 deletions

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.43",
"version": "0.5.44",
"publisher": "variet",
"engines": {
"vscode": "^1.100.0"