dis-gravity 1.1.0 → 1.2.5

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.
Binary file
package/package.json CHANGED
@@ -1,37 +1,45 @@
1
1
  {
2
2
  "name": "dis-gravity",
3
3
  "displayName": "Dis-Gravity",
4
- "description": "Dis-Gravity - The ultimate Discord bridge for your IDE",
5
- "version": "1.1.0",
4
+ "description": "Connect and control VS Code, Antigravity, and Cursor from mobile via Discord. Run terminal commands, approve AI agent tool calls in 38ms with zero open ports.",
5
+ "version": "1.2.5",
6
6
  "publisher": "anonk",
7
7
  "icon": "media/icon.png",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/sambath-rethinakumar/Dis-Gravity.git"
11
+ "url": "git+https://gitlab.com/rethinakumarsambath8/dis-gravity.git"
12
12
  },
13
- "homepage": "https://github.com/sambath-rethinakumar/Dis-Gravity#readme",
13
+ "homepage": "https://gitlab.com/rethinakumarsambath8/dis-gravity#readme",
14
14
  "bugs": {
15
- "url": "https://github.com/sambath-rethinakumar/Dis-Gravity/issues"
15
+ "url": "https://gitlab.com/rethinakumarsambath8/dis-gravity/-/issues"
16
16
  },
17
17
  "author": "Anon King",
18
18
  "preview": false,
19
19
  "bin": {
20
20
  "dis-gravity": "bin/dis-gravity.js"
21
21
  },
22
-
23
22
  "keywords": [
23
+ "connect-ide-to-mobile",
24
+ "control-ide-with-mobile",
25
+ "mobile-ide",
26
+ "remote-ide",
27
+ "connect-vscode-to-phone",
28
+ "control-cursor-from-mobile",
29
+ "dis-gravity",
30
+ "disgravity",
24
31
  "discord",
25
- "chat",
32
+ "vscode",
33
+ "remote-development",
26
34
  "bridge",
27
- "ai",
28
- "language-model",
35
+ "ai-agent",
29
36
  "copilot",
30
- "gemini",
31
37
  "antigravity",
32
38
  "cursor",
33
39
  "windsurf",
34
- "agentic-ide"
40
+ "terminal",
41
+ "cdp",
42
+ "devtools-protocol"
35
43
  ],
36
44
  "galleryBanner": {
37
45
  "color": "#5865F2",
@@ -71,9 +79,17 @@
71
79
  ]
72
80
  },
73
81
  "commands": [
82
+ {
83
+ "command": "antigravity-discord.setup",
84
+ "title": "Dis-Gravity: Run Setup Wizard"
85
+ },
74
86
  {
75
87
  "command": "antigravity-discord.reconnect",
76
88
  "title": "Dis-Gravity: Reconnect"
89
+ },
90
+ {
91
+ "command": "antigravity-discord.home",
92
+ "title": "Dis-Gravity: Open Mission Control Home"
77
93
  }
78
94
  ],
79
95
  "configuration": {
@@ -82,7 +98,7 @@
82
98
  "antigravity-discord.botToken": {
83
99
  "type": "string",
84
100
  "default": "",
85
- "description": "Discord Bot Token"
101
+ "description": "Discord Bot Token (Stored securely in SecretStorage; legacy plain-text settings are auto-migrated)"
86
102
  },
87
103
  "antigravity-discord.channelId": {
88
104
  "type": "string",
@@ -97,7 +113,7 @@
97
113
  "antigravity-discord.allowedUsers": {
98
114
  "type": "string",
99
115
  "default": "",
100
- "description": "Allowed Discord User IDs (comma-separated). Leave empty to allow all users in the channel."
116
+ "description": "Allowed Discord User IDs (comma-separated). Fail-closed security: remote execution is blocked if left empty."
101
117
  },
102
118
  "antigravity-discord.agentProvider": {
103
119
  "type": "string",
@@ -172,6 +188,41 @@
172
188
  "type": "number",
173
189
  "default": 10,
174
190
  "description": "Maximum tool execution iterations per request in VS Code Copilot ReAct loop"
191
+ },
192
+ "antigravity-discord.whisperApiKey": {
193
+ "type": "string",
194
+ "default": "",
195
+ "description": "Optional OpenAI / Groq / Whisper API key for automatic Discord voice message transcription (falls back to OPENAI_API_KEY, GROQ_API_KEY, or local whisper CLI)"
196
+ },
197
+ "antigravity-discord.whisperApiUrl": {
198
+ "type": "string",
199
+ "default": "",
200
+ "description": "Optional custom Whisper-compatible transcription endpoint URL (defaults to OpenAI or Groq audio transcriptions endpoint)"
201
+ },
202
+ "antigravity-discord.renderVisualDiffs": {
203
+ "type": "boolean",
204
+ "default": true,
205
+ "description": "Automatically render and attach 2x retina visual diff PNG images when running /diff"
206
+ },
207
+ "antigravity-discord.autoThreadTasks": {
208
+ "type": "boolean",
209
+ "default": true,
210
+ "description": "Automatically spawn isolated Discord threads for /plan, /goal, and deep autonomous agent tasks to keep the main channel clean"
211
+ },
212
+ "antigravity-discord.smartReactions": {
213
+ "type": "boolean",
214
+ "default": true,
215
+ "description": "Add instant emoji status reactions (👀, ⏳, ✅, ❌, 🔔) on Discord messages"
216
+ },
217
+ "antigravity-discord.voiceConfirmationGuard": {
218
+ "type": "boolean",
219
+ "default": true,
220
+ "description": "Show interactive preview and 5-second auto-execute countdown for transcribed voice prompts"
221
+ },
222
+ "antigravity-discord.urgentMentionOnApproval": {
223
+ "type": "boolean",
224
+ "default": true,
225
+ "description": "Mention the user (<@userId>) when action approval is required to trigger urgent mobile push alerts"
175
226
  }
176
227
  }
177
228
  }
@@ -182,10 +233,11 @@
182
233
  "watch": "node esbuild.js --watch",
183
234
  "lint": "eslint src",
184
235
  "typecheck": "tsc --noEmit",
185
- "test": "vitest run",
236
+ "test": "node --test \"test/**/*.test.js\"",
237
+ "test:vitest": "vitest run",
186
238
  "test:watch": "vitest",
187
- "prepackage": "npm run compile:production",
188
- "package": "vsce package"
239
+ "package": "npx @vscode/vsce package --no-dependencies",
240
+ "package:mcpb": "node scripts/package-mcpb.js"
189
241
  },
190
242
  "dependencies": {
191
243
  "discord.js": "^14.16.0",
@@ -199,6 +251,9 @@
199
251
  "typescript": "^5.5.0",
200
252
  "vitest": "^4.0.18"
201
253
  },
254
+ "overrides": {
255
+ "@azure/msal-node": "^7.1.1"
256
+ },
202
257
  "__metadata": {
203
258
  "targetPlatform": "universal",
204
259
  "isApplicationScoped": false,
@@ -0,0 +1,29 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const { execSync } = require('child_process');
4
+
5
+ const rootDir = path.resolve(__dirname, '..');
6
+ const pkg = JSON.parse(fs.readFileSync(path.join(rootDir, 'package.json'), 'utf8'));
7
+ const version = pkg.version;
8
+
9
+ const mcpbFile = `dis-gravity-${version}.mcpb`;
10
+ const dxtFile = `dis-gravity-${version}.dxt`;
11
+
12
+ console.log(`📦 Packaging MCP Bundle for Dis-Gravity v${version}...`);
13
+
14
+ // 1. Pack with @anthropic-ai/mcpb
15
+ execSync(`npx @anthropic-ai/mcpb pack . "${mcpbFile}"`, {
16
+ cwd: rootDir,
17
+ stdio: 'inherit'
18
+ });
19
+
20
+ // 2. Create .dxt alias for legacy Claude / DXT tooling
21
+ const mcpbPath = path.join(rootDir, mcpbFile);
22
+ const dxtPath = path.join(rootDir, dxtFile);
23
+ fs.copyFileSync(mcpbPath, dxtPath);
24
+
25
+ const mcpbSize = (fs.statSync(mcpbPath).size / 1024).toFixed(1);
26
+ const dxtSize = (fs.statSync(dxtPath).size / 1024).toFixed(1);
27
+
28
+ console.log(`✅ Created MCP Bundle: ${mcpbFile} (${mcpbSize} kB)`);
29
+ console.log(`✅ Created DXT Archive: ${dxtFile} (${dxtSize} kB)`);