dis-gravity 0.0.0-stage โ 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +20 -0
- package/README.md +312 -2
- package/bin/dis-gravity.js +702 -0
- package/changelog.md +89 -0
- package/dist/extension.js +9670 -0
- package/media/discord.svg +4 -0
- package/media/icon.png +0 -0
- package/media/screenshot-chat.png +0 -0
- package/media/screenshot-settings.png +0 -0
- package/package.json +206 -5
package/changelog.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.1.0] โ 2026-10-23
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- ๐ **Standalone CLI Daemon (`npx dis-gravity` / `bin/dis-gravity.js`) (Gaps M-01 & M-02)**: Run Dis-Gravity outside of VS Code as an independent background daemon! Seamlessly bridges Discord to JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, CLion), Neovim, Emacs, Zed, and headless remote servers with full remote shell execution, git inspection, file exploration, and CLI AI agents (`agy`, `claude`, `aider`, `shell`).
|
|
7
|
+
- ๐ง **Autonomous ReAct Agent Loop for VS Code Copilot (Gap M-03)**: In standard VS Code, `CopilotAgentProvider` runs a full autonomous ReAct agent loop (`view_file`, `edit_file`, `run_command`, `git_diff`, `list_dir`) with live step streaming and interactive Discord action buttons (`[ ๐ข Allow ]`, `[ ๐ด Deny ]`) for sensitive modifications!
|
|
8
|
+
- ๐ฅ๏ธ **Host Health & Workspace Dashboard (`/info`, `/workspace`, `!info`) (Gap G-10)**: Real-time host hardware and project health dashboard in Discord: active project, git branch, dirty files count, open editor tabs, host OS, CPU specs, memory utilization, and system uptime with 1-click action buttons.
|
|
9
|
+
- ๐ผ๏ธ **Headless Table PNG Rendering Fallback (Gap M-07)**: Headless browser (Edge / Chrome) rasterizer fallback ensuring high-resolution visual table PNG cards render reliably even in environments without an open CDP port (VS Code LM, CLI, and Standalone Daemon).
|
|
10
|
+
- ๐ **Cursor Mode Chips & Codebase Mentions (Gap M-04)**: Cursor Composer mode switching (`/plan`, `/edit`) and codebase context mention integration.
|
|
11
|
+
- ๐ **Windsurf Cascade Webview & Iframe Discovery (Gap M-05)**: Deep iframe and webview traversal to discover Cascade input in Windsurf.
|
|
12
|
+
- โ๏ธ **Multi-IDE Settings & Port Discovery (Gaps M-08 & M-09)**: Dedicated configuration keys for `cursorPort`, `windsurfPort`, `cliAgentPath`, `enableCopilotReAct`, and `copilotMaxToolSteps`.
|
|
13
|
+
- ๐ **Multi-IDE Full Feature Parity (`agentProvider: auto | antigravity | cursor | windsurf | copilot | cli`)**: Upgraded placeholder provider stubs to full production-grade autonomous implementations across all major IDEs (Cursor AI, Windsurf, VS Code Copilot, Universal Terminal / CLI Agent).
|
|
14
|
+
- ๐ผ๏ธ **High-Resolution Visual Table Image Rendering & Mobile Cards (`/table`, `!table`)**: Eliminates the mobile Discord codeblock line-wrapping problem that scrambles multi-column ASCII tables. Dynamically renders Markdown tables into crisp, high-DPI (2x retina) PNG image cards via Chromium's HTML5 Canvas, styled with Discord's dark palette, rounded containers, bold headers, and colored status chips.
|
|
15
|
+
- โณ **Live Step Streaming & Tool Observability (G-05)**: Replaced static timer with dynamic, real-time step streaming in Discord status messages. Automatically inspects DOM tool blocks, active spinners, task cards, and thinking containers to display active tool execution steps.
|
|
16
|
+
- ๐ก๏ธ **Tool Approvals & Action Confirmation Dialogs (G-08)**: Full remote bridging for tool execution approvals, permission prompts, and executable plan proceed cards. Renders native color-coded Discord action rows (`[ ๐ข Proceed / Allow ]`, `[ ๐ด Cancel / Deny ]`, `[ ๐ก๏ธ Always Allow ]`).
|
|
17
|
+
- ๐ฆ **Artifact Discovery & Asset Delivery (`/artifact`, `/get`, `!artifact`, `!get`) (G-09)**: Discover and download AI-generated artifacts (plans, walkthroughs, patches, diagrams, logs) directly in Discord.
|
|
18
|
+
- ๐ก๏ธ **Security Whitelist Alerts**: Clear on-boot warnings and `/status` notifications when `allowedUsers` is unconfigured.
|
|
19
|
+
- ๐ **Comprehensive 3-Minute Quickstart Guide**: Detailed Discord Bot setup with Privileged Gateway Intents (Message Content Intent) troubleshooting and platform-specific shortcut launch guides.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- ๐ **Multi-Window Discord Leadership Handoff & Dynamic Standby Polling**: Resolved issue where switching workspace via /action to an already open IDE window left the Discord bridge running on the old workspace. Implemented dynamic standby polling across inactive windows, multi-window detection via storage.json and CDP, automated leader handoff signals via shared storage, and active window focusing via CDP Page.bringToFront.
|
|
23
|
+
- ๐ **Fixed Workspace Opening via /action & Added Interactive Workspace Switcher**: Fixed failure where selecting workbench.action.openWorkspace via /action opened a desktop modal dialog on the host PC and failed with Error: Canceled. Added a high-performance recent workspace discovery engine (state.vscdb & storage.json), direct workspace autocomplete options in /action (๐ Open Workspace: <Name>), an interactive Discord Select Menu & 1-click button picker (ction:select_workspace, ction:open_ws:<path>), and chat shortcut commands (!workspace open, !openws, !switchws).
|
|
24
|
+
- ๐ผ๏ธ **Fixed Missing Visual Table Images in Discord**: Resolved premature table string replacement before image extraction and relaxed CDP target evaluation requirements.
|
|
25
|
+
- ๐ง **Fixed `/plan`, `/goal`, and `/grill` Not Activating IDE Modes**: Automatically selects and inserts native Lexical `contextScopeItemMention` command chips into the editor before prompt submission.
|
|
26
|
+
|
|
27
|
+
## [1.0.0] โ 2026-10-20
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
- ๐ฟ **Git Status & Review (`/git status`, `!git status`)**: Remote inspection of working tree branches, ahead/behind status, staged changes, unstaged changes, and untracked files with interactive action buttons (`[ ๐ View Diff ]`, `[ โ
Stage All ]`, `[ ๐ Push ]`, `[ ๐ Status ]`).
|
|
31
|
+
- ๐ **Colored Git Diff Inspector (`/diff`, `/git diff`, `!diff`)**: Full git diff inspection with Discord `diff` syntax highlighting (`+` green, `-` red). Includes diffstat summary, targeted file diffs (`/diff <file>`), staged change support (`staged: true`), and automatic `.patch` file generation and attachment for diffs exceeding message length limits.
|
|
32
|
+
- ๐ **Git Commit Log (`/git log`, `!git log`)**: View recent commit hashes, summaries, author names, and relative timestamps directly from Discord.
|
|
33
|
+
- ๐ **Remote File Inspection (`/cat`, `!cat`)**: Inspect workspace files remotely with language-specific syntax highlighting, line numbers, and optional line range slicing (`/cat <path> [startLine] [endLine]`). Automatically detects binary files and attaches oversized text files.
|
|
34
|
+
- ๐ณ **Workspace Directory Tree (`/tree`, `!tree`)**: Visual ASCII directory tree generator with customizable depth (`depth: 1-5`, default: 2), directory/file counters, and automated noise filtering (`node_modules`, `.git`, `.disgravity`, `dist`, build caches).
|
|
35
|
+
- ๐ **Remote File Opener (`/open`, `!open`)**: Open any file in the active editor tab of Antigravity IDE directly from Discord.
|
|
36
|
+
- ๐ **Inbound Attachment Downloader & Multimodal Prompt Ingestion**: Automatically downloads image screenshots, crash logs, and code files sent in Discord messages directly into `.disgravity/attachments/` in the workspace root, tagging them into the agent prompt (`[Attached Image: ...]`, `[Attached File: ...]`) for full vision and context analysis.
|
|
37
|
+
- ๐ป **Remote Terminal & Shell Runner (`/sh`, `!sh`, `$`)**: Execute any shell command directly in the host workstation workspace root from Discord. Outputs command exit code, execution duration, and formatted stdout/stderr code blocks with auto-truncation for Discord message limits.
|
|
38
|
+
- ๐ก๏ธ **User Authorization Whitelist (`allowedUsers`)**: Protect your IDE from unauthorized server members. Only configured Discord user IDs can execute commands, trigger actions, or interact with the AI assistant. Unregistered users receive an explicit ephemeral rejection.
|
|
39
|
+
- ๐งต **Persistent Conversation Thread Mapping**: Thread-to-conversation bindings are now automatically saved to VS Code `workspaceState` and restored on extension launch, surviving window reloads (`!reload`), IDE restarts, and crashes.
|
|
40
|
+
- โ๏ธ **Allowed Users Sidebar Setting**: Added Allowed Users configuration to both `package.json` settings and the Dis-Gravity webview sidebar panel with auto-save.
|
|
41
|
+
- ๐ฎ **1-Click IDE Command Palette Dashboard (`/palette`)**: Complete remote control for triggering any VS Code / Antigravity command from Discord with 1-click native buttons. Includes 25 interactive buttons per view across Featured, Developer (`Reload Window`, `Restart Host`, `DevTools`, `Settings`, `Keybindings`, `Process Explorer`), Terminal (`New Terminal`, `Toggle Term`, `Clear Term`, `Kill Term`, `Split Term`), Files (`Save All`, `Close All`, `Reopen Closed`, `New File`, `Save File`), Git (`Sync`, `Pull`, `Push`, `Stage All`, `Unstage All`), and View categories. Features instant window reload notice before restarting.
|
|
42
|
+
- โก **Live Command Palette Autocomplete & Action Execution (`/action`)**: Registered `/action <command>` slash command with live real-time Discord autocomplete querying both curated friendly titles and all live registered commands (`vscode.commands.getCommands()`) in the IDE.
|
|
43
|
+
- ๐ **Interactive Command Search Modal**: Added `[ ๐ Search Any... ]` button that opens a native Discord modal popup to search across all ~1,000+ IDE commands by keyword and dynamically generates 1-click buttons for the matching search results.
|
|
44
|
+
- ๐ **Command Palette Text Shortcuts**: Instant chat shortcuts for `!palette [category]`, `!reload` / `!restart` (Reload Window), `!save` (Save All), `!terminal` (New Terminal), and `!run <commandId>` / `!cmd <commandId>` (arbitrary command ID execution).
|
|
45
|
+
- ๐ง **AI Reasoning Effort Switcher (Low / Medium / High)**: Full remote control for models with dedicated thinking/reasoning effort levels (such as Gemini 3.8 Flash, Claude Opus, and Claude Sonnet). Added `/effort <level>` slash command with autocomplete choices (`Low`, `Medium`, `High`), expanded `/models` dropdown menu with individual model+effort variations, added 1-tap quick action buttons (`[ ๐ข Low Effort ]`, `[ ๐ก Medium Effort ]`, `[ ๐ด High Effort ]`) to `/status` and `/models`, and supported text command shortcuts (`!effort high`, `!low`, `!medium`, `!high`, `!model <name> <effort>`).
|
|
46
|
+
- โก **Native Discord Slash Commands (`/`) & IDE Actions Bridge**: Registered Discord application commands (`/plan`, `/goal`, `/grill`, `/stop`, `/status`, `/models`, `/model`, `/effort`, `/new`, `/help`) that appear in Discord's native `/` autocomplete command picker with instant guild registration.
|
|
47
|
+
- ๐ **Emergency Agent Cancellation**: Added `/stop` slash command and text shortcut (`!stop`, `cancel`) that triggers CDP to immediately click the IDE's cancel button (`input-send-button-cancel-tooltip`), stopping long-running or runaway agent tasks remotely.
|
|
48
|
+
- โก **Interactive Model Switcher Dropdown**: Attached a Discord `StringSelectMenu` to `/models` commands allowing one-tap AI model switching directly from Discord desktop and mobile.
|
|
49
|
+
- ๐ **Rich Status & Control Panel**: Added `/status` command displaying real-time CDP bridge connection, active AI model, token usage, agent busy/idle state, and quick action buttons (`[ ๐ Stop Agent ]`, `[ ๐ New Chat ]`, `[ โก Models ]`).
|
|
50
|
+
- ๐ฌ **Text-Command Fallbacks**: Full support for typing `/cmd` or `!cmd` in regular chat messages and threads (`!plan`, `!goal`, `!grill`, `!stop`, `!status`, `!models`, `!new`, `!help`).
|
|
51
|
+
- ๐ Native Discord interactive components for IDE prompts: tap options directly via Discord Buttons (color-coded for Yes/No/Options), native Modal popup for custom write-in responses, and Skip button with instant double-click protection.
|
|
52
|
+
- ๐ Interactive prompt support: forward selection and confirmation prompts to Discord and submit choices back to IDE
|
|
53
|
+
|
|
54
|
+
- ๐ผ๏ธ **Fixed Missing Visual Table Images in Discord**: Resolved a dual-issue bug that prevented Markdown tables from attaching their PNG image cards. Previously, `cleanResponse` prematurely called `formatMarkdownTablesForDiscord` before passing the text to `sendToThread`/`sendMessage`, replacing markdown table syntax with placeholder text before table extraction could run. Additionally, fixed the CDP table renderer (`renderTableToPng`) by removing strict execution-context restrictions (evaluating in default context first), correcting WebSocket target discovery, waiting strictly for response message ID 9911, and adding defensive fallback to mobile cards (`renderTableAsCards`) so missing image promises are never made if image generation fails.
|
|
55
|
+
- ๐ง **Fixed `/plan`, `/goal`, and `/grill` Not Activating IDE Modes**: Previously sent slash commands as raw text strings without creating Antigravity's Lexical decorator chips, leaving the IDE in default execution mode. Now automatically drives the Lexical typeahead to select and insert the native `contextScopeItemMention` command chip (attaching the IDE's full system prompt instructions for Planning Mode, Goal Mode, etc.) before inserting the prompt and submitting.
|
|
56
|
+
- ๐ Fixed `/models` failure ("Model dialog did not open"): updated selector to target Antigravity IDE's Base-UI `[data-testid="model-selector-panel"]` and `[role="menu"]` container, added detection for `div[role="menuitem"]` items and effort submenus (High/Medium/Low), prevented dropdown toggling when already open, and improved model alias resolution.
|
|
57
|
+
- ๐ Fixed model dialog prematurely opening and closing on `/models`: prevented double-click toggle race condition by polling for panel visibility (6 attempts @ 100ms) after DOM trigger click before falling back to CDP mouse clicks, stripped trailing badge text from model names, provided explicit error diagnostics when parsing items, and packaged/installed the updated extension directly into Antigravity IDE.
|
|
58
|
+
- ๐ Added background task & autonomous watchdog: automatically captures and delivers completion responses and follow-up turns (e.g. after background terminal tasks or reactive agent wakeups) to the active Discord thread.
|
|
59
|
+
- ๐ Added idle prompt detection: automatically discovers and forwards interactive question prompts to Discord even when triggered outside direct Discord message turns.
|
|
60
|
+
- ๐ Fixed prompt question text missing in Discord by properly stripping style, script, and SVG noise and correctly targeting rich-text question containers.
|
|
61
|
+
- ๐ Fixed missing file paths, directory chips, and symbol links in Discord responses caused by dropping `<button>` elements during HTML-to-Markdown conversion.
|
|
62
|
+
- ๐จ Added table markdown parsing and preserved code block syntax highlighting language.
|
|
63
|
+
- ๐ Fixed assistant status messages (analyzing, completed, queue, error, and webview typing messages) to display in English instead of Italian.
|
|
64
|
+
- ๐จ Enhanced Discord visual fidelity to match IDE chat: normalized H1โH3 headings and adapted H4+ subheadings for Discord markdown, converted horizontal dividers to clean visual rules (`โโโโโโโโโโโโโโโโโโโโโโโโโโโโ`), preserved task list checkboxes (`โ
` / `โฌ`), and formatted GitHub alert blockquotes (`> โน๏ธ **NOTE:**`, `> โ ๏ธ **WARNING:**`).
|
|
65
|
+
- ๐ก๏ธ Hardened noise filter (`cleanResponse` / `RC`): strictly scoped system status patterns to prevent dropping bulleted list items and status translation arrows (`โณ`, `โ
`).
|
|
66
|
+
- โ๏ธ Markdown-aware message chunking (`sU`): balanced unclosed code block fences across 2000-character chunks to prevent broken syntax highlighting.
|
|
67
|
+
- ๐ Multi-attempt chat DOM extraction: prioritized conversation turn traversal to reliably extract Markdown without falling back to plain text `innerText`.
|
|
68
|
+
- ๐ก๏ธ Resolved duplicate extension conflict with legacy `anonk.antigravity-discord-custom` and protected `registerWebviewViewProvider` against collision crashes.
|
|
69
|
+
|
|
70
|
+
### Removed
|
|
71
|
+
- โ Removed auto-click / auto-accept background clicking mechanism
|
|
72
|
+
|
|
73
|
+
## [0.1.0] โ 2026-02-26
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
|
|
77
|
+
- ๐ค Discord โ AI agent bridge via Chrome DevTools Protocol (CDP)
|
|
78
|
+
- โ
Auto-accept: automatically clicks Accept / Run / Always Allow buttons (always-on when CDP is connected)
|
|
79
|
+
- ๐ Message queue: concurrent Discord messages are queued (up to 5) instead of rejected
|
|
80
|
+
- ๐จ Rich markdown formatting on Discord: code blocks with syntax highlighting, bold, italic, inline code, lists, blockquotes
|
|
81
|
+
- โ๏ธ Settings GUI in the sidebar panel with tabbed interface (Chat / Settings)
|
|
82
|
+
- ๐ก Live connection status indicators (Discord + CDP + Auto-Accept) with green/red dots
|
|
83
|
+
- ๐งต Reasoning threads on Discord for each processed message
|
|
84
|
+
- โ๏ธ Smart message splitting for Discord's 2000-character limit
|
|
85
|
+
- ๐จ VS Code theme integration for chat and settings panels
|
|
86
|
+
- ๐ Reconnect command and button
|
|
87
|
+
- ๐ Noise filtering: strips Antigravity UI chrome and auto-accept scan logs from responses
|
|
88
|
+
- ๐ First-message retry: automatically retries if the agent doesn't start processing
|
|
89
|
+
- Auto-save settings with debounce
|