@chrrxs/robloxstudio-mcp-inspector 2.22.2 → 2.22.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrrxs/robloxstudio-mcp-inspector",
3
- "version": "2.22.2",
3
+ "version": "2.22.4",
4
4
  "description": "Read-only MCP server for inspecting and debugging Roblox Studio from AI coding tools",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1439,9 +1439,9 @@ local function computeBridgeStamp()
1439
1439
  for i = 1, #combined do
1440
1440
  h = (h * 33 + (string.byte(combined, i))) % 2147483647
1441
1441
  end
1442
- -- "2.22.2" is replaced with the package version at package time
1442
+ -- "2.22.4" is replaced with the package version at package time
1443
1443
  -- (scripts/build-plugin.mjs injectVersion), so a release bump also restamps.
1444
- return `{tostring(h)}-2.22.2`
1444
+ return `{tostring(h)}-2.22.4`
1445
1445
  end
1446
1446
  local BRIDGE_STAMP = computeBridgeStamp()
1447
1447
  local function setSource(scriptInst, source)
@@ -10493,7 +10493,7 @@ local function dropOldestUntilFits(incomingBytes)
10493
10493
  totalDropped += 1
10494
10494
  end
10495
10495
  end
10496
- local function pushEntry(msg, t, ts)
10496
+ local function pushEntry(msg, t, ts, data)
10497
10497
  if ts == nil then
10498
10498
  ts = nowSec()
10499
10499
  end
@@ -10505,6 +10505,7 @@ local function pushEntry(msg, t, ts)
10505
10505
  ts = ts,
10506
10506
  level = levelTag(t),
10507
10507
  message = safeMessage,
10508
+ data = data,
10508
10509
  }
10509
10510
  table.insert(entries, _arg0)
10510
10511
  nextSeq += 1
@@ -10549,8 +10550,8 @@ local function install()
10549
10550
  -- Seed from per-DataModel LogHistory so get_runtime_logs can still see them;
10550
10551
  -- edit history is bounded to the current Studio process above.
10551
10552
  seedRuntimeHistory()
10552
- LogService.MessageOut:Connect(function(msg, t)
10553
- pushEntry(msg, t)
10553
+ LogService.MessageOut:Connect(function(msg, t, context)
10554
+ pushEntry(msg, t, nil, context)
10554
10555
  end)
10555
10556
  end
10556
10557
  local function detectPeer()
@@ -10813,7 +10814,7 @@ return {
10813
10814
  <Properties>
10814
10815
  <string name="Name">State</string>
10815
10816
  <string name="Source"><![CDATA[-- Compiled with roblox-ts v3.0.0
10816
- local CURRENT_VERSION = "2.22.2"
10817
+ local CURRENT_VERSION = "2.22.4"
10817
10818
  local PLUGIN_VARIANT = "inspector"
10818
10819
  local BASE_PORT = 58741
10819
10820
  local function createConnection(port)
@@ -1439,9 +1439,9 @@ local function computeBridgeStamp()
1439
1439
  for i = 1, #combined do
1440
1440
  h = (h * 33 + (string.byte(combined, i))) % 2147483647
1441
1441
  end
1442
- -- "2.22.2" is replaced with the package version at package time
1442
+ -- "2.22.4" is replaced with the package version at package time
1443
1443
  -- (scripts/build-plugin.mjs injectVersion), so a release bump also restamps.
1444
- return `{tostring(h)}-2.22.2`
1444
+ return `{tostring(h)}-2.22.4`
1445
1445
  end
1446
1446
  local BRIDGE_STAMP = computeBridgeStamp()
1447
1447
  local function setSource(scriptInst, source)
@@ -10493,7 +10493,7 @@ local function dropOldestUntilFits(incomingBytes)
10493
10493
  totalDropped += 1
10494
10494
  end
10495
10495
  end
10496
- local function pushEntry(msg, t, ts)
10496
+ local function pushEntry(msg, t, ts, data)
10497
10497
  if ts == nil then
10498
10498
  ts = nowSec()
10499
10499
  end
@@ -10505,6 +10505,7 @@ local function pushEntry(msg, t, ts)
10505
10505
  ts = ts,
10506
10506
  level = levelTag(t),
10507
10507
  message = safeMessage,
10508
+ data = data,
10508
10509
  }
10509
10510
  table.insert(entries, _arg0)
10510
10511
  nextSeq += 1
@@ -10549,8 +10550,8 @@ local function install()
10549
10550
  -- Seed from per-DataModel LogHistory so get_runtime_logs can still see them;
10550
10551
  -- edit history is bounded to the current Studio process above.
10551
10552
  seedRuntimeHistory()
10552
- LogService.MessageOut:Connect(function(msg, t)
10553
- pushEntry(msg, t)
10553
+ LogService.MessageOut:Connect(function(msg, t, context)
10554
+ pushEntry(msg, t, nil, context)
10554
10555
  end)
10555
10556
  end
10556
10557
  local function detectPeer()
@@ -10813,7 +10814,7 @@ return {
10813
10814
  <Properties>
10814
10815
  <string name="Name">State</string>
10815
10816
  <string name="Source"><![CDATA[-- Compiled with roblox-ts v3.0.0
10816
- local CURRENT_VERSION = "2.22.2"
10817
+ local CURRENT_VERSION = "2.22.4"
10817
10818
  local PLUGIN_VARIANT = "main"
10818
10819
  local BASE_PORT = 58741
10819
10820
  local function createConnection(port)
@@ -24,6 +24,7 @@ interface RuntimeLogEntry {
24
24
  ts: number; // wall-clock seconds via DateTime, coherent across peers
25
25
  level: LogLevel;
26
26
  message: string;
27
+ data?: Record<string, unknown>;
27
28
  }
28
29
 
29
30
  const MAX_BYTES = 64 * 1024;
@@ -88,7 +89,12 @@ function dropOldestUntilFits(incomingBytes: number): void {
88
89
  }
89
90
  }
90
91
 
91
- function pushEntry(msg: string, t: Enum.MessageType, ts = nowSec()): void {
92
+ function pushEntry(
93
+ msg: string,
94
+ t: Enum.MessageType,
95
+ ts = nowSec(),
96
+ data?: Record<string, unknown>,
97
+ ): void {
92
98
  const safeMessage = escapeInvalidUtf8(msg);
93
99
  const bytes = safeMessage.size();
94
100
  dropOldestUntilFits(bytes);
@@ -97,6 +103,7 @@ function pushEntry(msg: string, t: Enum.MessageType, ts = nowSec()): void {
97
103
  ts,
98
104
  level: levelTag(t),
99
105
  message: safeMessage,
106
+ data,
100
107
  });
101
108
  nextSeq += 1;
102
109
  totalBytes += bytes;
@@ -135,8 +142,8 @@ function install(): void {
135
142
  // Seed from per-DataModel LogHistory so get_runtime_logs can still see them;
136
143
  // edit history is bounded to the current Studio process above.
137
144
  seedRuntimeHistory();
138
- LogService.MessageOut.Connect((msg, t) => {
139
- pushEntry(msg, t);
145
+ LogService.MessageOut.Connect((msg, t, context?: Record<string, unknown>) => {
146
+ pushEntry(msg, t, undefined, context);
140
147
  });
141
148
  }
142
149