@el4cteo/rbx-studio-mcp 0.6.8 → 0.7.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/README.md +2 -2
- package/dist/bridge/harness.js +39 -12
- package/dist/bridge/harness.js.map +1 -1
- package/dist/bridge/rpc.js +26 -6
- package/dist/bridge/rpc.js.map +1 -1
- package/dist/bridge/server.js +12 -4
- package/dist/bridge/server.js.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/tools/exec.js +5 -4
- package/dist/tools/exec.js.map +1 -1
- package/dist/tools/scripts.js +4 -2
- package/dist/tools/scripts.js.map +1 -1
- package/dist/tools/world.js +11 -3
- package/dist/tools/world.js.map +1 -1
- package/package.json +74 -74
- package/plugin/src/Config.luau +65 -65
- package/plugin/src/Serialize.luau +10 -0
- package/plugin/src/TextEdit.luau +6 -6
- package/plugin/src/handlers/Discover.luau +690 -685
- package/plugin/src/handlers/Exec.luau +5 -1
- package/plugin/src/handlers/Scripts.luau +677 -673
- package/plugin/src/handlers/Terrain.luau +371 -371
- package/scripts/test-bridge.mjs +328 -267
- package/scripts/test-console.mjs +592 -560
- package/scripts/test-server.mjs +60 -0
|
@@ -305,7 +305,11 @@ function Exec.run(params: { [string]: any }): { [string]: any }
|
|
|
305
305
|
|
|
306
306
|
local returned: { any } = {}
|
|
307
307
|
for index = 2, math.min(results.n, MAX_RETURN_VALUES + 1) do
|
|
308
|
-
table.insert
|
|
308
|
+
-- A nil return is written out rather than dropped. `table.insert` of nil
|
|
309
|
+
-- does nothing, so `return a, nil, b` came back as two values and every
|
|
310
|
+
-- one after the nil shifted into the wrong position.
|
|
311
|
+
local value = results[index]
|
|
312
|
+
table.insert(returned, if value == nil then "nil" else describe(value))
|
|
309
313
|
end
|
|
310
314
|
|
|
311
315
|
return {
|