@adiholick/nvstudio-mcp 2.2.1 → 2.2.3
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 +775 -141
- package/dist/roblox-bridge.js +442 -86
- package/dist/task-queue.js +57 -6
- package/dist/ws-gateway.js +579 -0
- package/package.json +4 -2
- package/public/index.html +16 -2
- package/studio-plugin/Main.server.lua +484 -53
- package/studio-plugin/get_properties.lua +25 -2
- package/studio-plugin/nvstudio_mcp.rbxmx +513 -57
- package/studio-plugin/script_grep.lua +4 -2
|
@@ -48,7 +48,8 @@ return function(targetInstance, data, ctx, targetPath)
|
|
|
48
48
|
if targetInstance and targetInstance ~= game then
|
|
49
49
|
local descendants = {}
|
|
50
50
|
pcall(function() descendants = targetInstance:GetDescendants() end)
|
|
51
|
-
for
|
|
51
|
+
for i, desc in ipairs(descendants) do
|
|
52
|
+
if i % 300 == 0 then task.wait() end
|
|
52
53
|
if matchCount >= MAX_MATCHES then break end
|
|
53
54
|
if desc:IsA("LuaSourceContainer") then
|
|
54
55
|
if searchInScript(desc) then
|
|
@@ -60,7 +61,8 @@ return function(targetInstance, data, ctx, targetPath)
|
|
|
60
61
|
for _, service in ipairs(searchableServices) do
|
|
61
62
|
local descendants = {}
|
|
62
63
|
pcall(function() descendants = service:GetDescendants() end)
|
|
63
|
-
for
|
|
64
|
+
for i, desc in ipairs(descendants) do
|
|
65
|
+
if i % 300 == 0 then task.wait() end
|
|
64
66
|
if matchCount >= MAX_MATCHES then break end
|
|
65
67
|
if desc:IsA("LuaSourceContainer") then
|
|
66
68
|
if searchInScript(desc) then
|