@adiholick/nvstudio-mcp 2.1.5 → 2.1.6

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/dist/index.js CHANGED
@@ -28,7 +28,7 @@ const isDaemon = process.argv.includes('--daemon') || process.argv.includes('-d'
28
28
  // 2. Inisialisasi server MCP
29
29
  const server = new index_js_1.Server({
30
30
  name: "nvstudio-mcp",
31
- version: "2.1.5",
31
+ version: "2.1.6",
32
32
  }, {
33
33
  capabilities: {
34
34
  tools: {},
@@ -219,13 +219,7 @@ async function main() {
219
219
  process.stdin.on('close', shutdown);
220
220
  process.stdin.on('end', shutdown);
221
221
  process.stdin.on('error', shutdown);
222
- // Fallback khusus Windows: cek apakah stdin masih readable secara berkala
223
- setInterval(() => {
224
- if (!process.stdin.readable) {
225
- console.error("[nvstudio-mcp] stdin tidak readable lagi. IDE kemungkinan sudah ditutup.");
226
- shutdown();
227
- }
228
- }, 3000);
222
+ // Fallback dihapus karena menyebabkan disconnect palsu di beberapa environment AGY
229
223
  }
230
224
  if (isDaemon) {
231
225
  console.error("[nvstudio-mcp] Berjalan dalam mode DAEMON (Background Bridge Server di port 3055).");
@@ -77,7 +77,7 @@ function broadcastStatus() {
77
77
  const statusEvent = {
78
78
  mcpConnected,
79
79
  studioCount: ssePeers.size,
80
- serverVersion: '2.1.5',
80
+ serverVersion: '2.1.6',
81
81
  };
82
82
  broadcastEvent('status', statusEvent);
83
83
  // Juga enqueue untuk Studio yang belum polling saat ini
@@ -210,7 +210,7 @@ function startBridgeServer(port = 3055) {
210
210
  studioEventQueues.set(studioId, []); // kosongkan antrian
211
211
  // Selalu sertakan status terkini
212
212
  const events = [
213
- { kind: 'status', mcpConnected, studioCount: studioEventQueues.size, serverVersion: '2.1.5' },
213
+ { kind: 'status', mcpConnected, studioCount: studioEventQueues.size, serverVersion: '2.1.6' },
214
214
  ];
215
215
  // Tambahkan events tertunda (misalnya task requests)
216
216
  for (const ev of queue) {
@@ -259,7 +259,7 @@ function startBridgeServer(port = 3055) {
259
259
  const silenceTimer = setTimeout(() => cleanup(), 60000);
260
260
  const peer = { studioId, res, connectedAt: Date.now(), heartbeatTimer, silenceTimer };
261
261
  ssePeers.set(studioId, peer);
262
- sendEvent(peer, 'status', { mcpConnected, studioCount: studioEventQueues.size, serverVersion: '2.1.5' });
262
+ sendEvent(peer, 'status', { mcpConnected, studioCount: studioEventQueues.size, serverVersion: '2.1.6' });
263
263
  function cleanup() {
264
264
  clearInterval(heartbeatTimer);
265
265
  clearTimeout(silenceTimer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adiholick/nvstudio-mcp",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Local Bridge Server MCP for Roblox Studio",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -1,5 +1,5 @@
1
1
  -- ══════════════════════════════════════════════════════════════════════
2
- -- NVStudio MCP Plugin v2.1.5
2
+ -- NVStudio MCP Plugin v2.1.6
3
3
  -- Arsitektur: Polling Stream / Local HTTP Bridge (Port 3055)
4
4
  -- Plugin auto-connect saat dimuat, polling /api/ping lalu /api/stream
5
5
  -- untuk mendapatkan events (status, request) dari server Node.js.
@@ -271,7 +271,7 @@ function startConnectionLoop()
271
271
  reconnectDelay = RECONNECT_DELAY_INITIAL
272
272
 
273
273
  if ui then
274
- ui:addLog("[System] NVStudio MCP v2.1.5 — Menghubungkan ke server...", Color3.fromRGB(200, 200, 200))
274
+ ui:addLog("[System] NVStudio MCP v2.1.6 — Menghubungkan ke server...", Color3.fromRGB(200, 200, 200))
275
275
  end
276
276
 
277
277
  local consecutiveErrors = 0
@@ -379,7 +379,7 @@ end
379
379
  <BinaryString name="Tags"></BinaryString>
380
380
  <token name="RunContext">0</token>
381
381
  <ProtectedString name="Source"><![CDATA[-- ══════════════════════════════════════════════════════════════════════
382
- -- NVStudio MCP Plugin v2.1.5
382
+ -- NVStudio MCP Plugin v2.1.6
383
383
  -- Arsitektur: Polling Stream / Local HTTP Bridge (Port 3055)
384
384
  -- Plugin auto-connect saat dimuat, polling /api/ping lalu /api/stream
385
385
  -- untuk mendapatkan events (status, request) dari server Node.js.
@@ -651,7 +651,7 @@ function startConnectionLoop()
651
651
  reconnectDelay = RECONNECT_DELAY_INITIAL
652
652
 
653
653
  if ui then
654
- ui:addLog("[System] NVStudio MCP v2.1.5 — Menghubungkan ke server...", Color3.fromRGB(200, 200, 200))
654
+ ui:addLog("[System] NVStudio MCP v2.1.6 — Menghubungkan ke server...", Color3.fromRGB(200, 200, 200))
655
655
  end
656
656
 
657
657
  local consecutiveErrors = 0
@@ -1078,7 +1078,7 @@ function UIManager.init(pluginInstance, studioId)
1078
1078
 
1079
1079
  -- Version
1080
1080
  local versionLabel = Instance.new("TextLabel")
1081
- versionLabel.Text = "v2.1.5"
1081
+ versionLabel.Text = "v2.1.6"
1082
1082
  versionLabel.Font = Enum.Font.Gotham
1083
1083
  versionLabel.TextSize = 11
1084
1084
  versionLabel.TextColor3 = Color3.fromRGB(120, 120, 130)
@@ -95,7 +95,7 @@ function UIManager.init(pluginInstance, studioId)
95
95
 
96
96
  -- Version
97
97
  local versionLabel = Instance.new("TextLabel")
98
- versionLabel.Text = "v2.1.5"
98
+ versionLabel.Text = "v2.1.6"
99
99
  versionLabel.Font = Enum.Font.Gotham
100
100
  versionLabel.TextSize = 11
101
101
  versionLabel.TextColor3 = Color3.fromRGB(120, 120, 130)