@adiholick/nvstudio-mcp 2.0.2 → 2.0.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/build-plugin.js +2 -2
- package/package.json +1 -1
- package/studio-plugin/nvstudio_mcp.rbxmx +17 -17
package/dist/build-plugin.js
CHANGED
|
@@ -39,7 +39,7 @@ function buildRbxmx() {
|
|
|
39
39
|
xml += `\t\t\t<bool name="DefinesCapabilities">false</bool>\n`;
|
|
40
40
|
xml += `\t\t\t<string name="Name">nvstudio_mcp</string>\n`;
|
|
41
41
|
xml += `\t\t\t<int64 name="SourceAssetId">-1</int64>\n`;
|
|
42
|
-
xml += `\t\t\t<
|
|
42
|
+
xml += `\t\t\t<BinaryString name="Tags"></BinaryString>\n`;
|
|
43
43
|
xml += `\t\t</Properties>\n`;
|
|
44
44
|
// Process files
|
|
45
45
|
for (const file of files) {
|
|
@@ -61,7 +61,7 @@ function buildRbxmx() {
|
|
|
61
61
|
xml += `\t\t\t\t<Content name="LinkedSource"><null></null></Content>\n`;
|
|
62
62
|
xml += `\t\t\t\t<string name="Name">${scriptName}</string>\n`;
|
|
63
63
|
xml += `\t\t\t\t<int64 name="SourceAssetId">-1</int64>\n`;
|
|
64
|
-
xml += `\t\t\t\t<
|
|
64
|
+
xml += `\t\t\t\t<BinaryString name="Tags"></BinaryString>\n`;
|
|
65
65
|
if (isMain) {
|
|
66
66
|
xml += `\t\t\t\t<token name="RunContext">0</token>\n`;
|
|
67
67
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<bool name="DefinesCapabilities">false</bool>
|
|
9
9
|
<string name="Name">nvstudio_mcp</string>
|
|
10
10
|
<int64 name="SourceAssetId">-1</int64>
|
|
11
|
-
<
|
|
11
|
+
<BinaryString name="Tags"></BinaryString>
|
|
12
12
|
</Properties>
|
|
13
13
|
<Item class="ModuleScript" referent="RBX_create_instance">
|
|
14
14
|
<Properties>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<Content name="LinkedSource"><null></null></Content>
|
|
20
20
|
<string name="Name">create_instance</string>
|
|
21
21
|
<int64 name="SourceAssetId">-1</int64>
|
|
22
|
-
<
|
|
22
|
+
<BinaryString name="Tags"></BinaryString>
|
|
23
23
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
24
24
|
local success, config = pcall(function() return ctx.HttpService:JSONDecode(data) end)
|
|
25
25
|
if not success or not config.ClassName then
|
|
@@ -56,7 +56,7 @@ end
|
|
|
56
56
|
<Content name="LinkedSource"><null></null></Content>
|
|
57
57
|
<string name="Name">delete_instance</string>
|
|
58
58
|
<int64 name="SourceAssetId">-1</int64>
|
|
59
|
-
<
|
|
59
|
+
<BinaryString name="Tags"></BinaryString>
|
|
60
60
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
61
61
|
-- Guardrail: Cegah penghapusan Service utama
|
|
62
62
|
local protectedServices = {
|
|
@@ -100,7 +100,7 @@ end
|
|
|
100
100
|
<Content name="LinkedSource"><null></null></Content>
|
|
101
101
|
<string name="Name">execute_luau</string>
|
|
102
102
|
<int64 name="SourceAssetId">-1</int64>
|
|
103
|
-
<
|
|
103
|
+
<BinaryString name="Tags"></BinaryString>
|
|
104
104
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
105
105
|
local code = data
|
|
106
106
|
if not code or code == "" then
|
|
@@ -184,7 +184,7 @@ end
|
|
|
184
184
|
<Content name="LinkedSource"><null></null></Content>
|
|
185
185
|
<string name="Name">generate_terrain</string>
|
|
186
186
|
<int64 name="SourceAssetId">-1</int64>
|
|
187
|
-
<
|
|
187
|
+
<BinaryString name="Tags"></BinaryString>
|
|
188
188
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
189
189
|
local success, config = pcall(function() return ctx.HttpService:JSONDecode(data) end)
|
|
190
190
|
if not success or not config.Size or not config.Position or not config.Material then
|
|
@@ -220,7 +220,7 @@ end
|
|
|
220
220
|
<Content name="LinkedSource"><null></null></Content>
|
|
221
221
|
<string name="Name">get_children</string>
|
|
222
222
|
<int64 name="SourceAssetId">-1</int64>
|
|
223
|
-
<
|
|
223
|
+
<BinaryString name="Tags"></BinaryString>
|
|
224
224
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
225
225
|
local children = {}
|
|
226
226
|
for _, child in ipairs(targetInstance:GetChildren()) do
|
|
@@ -240,7 +240,7 @@ end
|
|
|
240
240
|
<Content name="LinkedSource"><null></null></Content>
|
|
241
241
|
<string name="Name">get_logs</string>
|
|
242
242
|
<int64 name="SourceAssetId">-1</int64>
|
|
243
|
-
<
|
|
243
|
+
<BinaryString name="Tags"></BinaryString>
|
|
244
244
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
245
245
|
if #ctx.recentLogs == 0 then
|
|
246
246
|
return { status = "success", result = {"Console kosong. Tidak ada error atau log terbaru."} }
|
|
@@ -260,7 +260,7 @@ end
|
|
|
260
260
|
<Content name="LinkedSource"><null></null></Content>
|
|
261
261
|
<string name="Name">get_properties</string>
|
|
262
262
|
<int64 name="SourceAssetId">-1</int64>
|
|
263
|
-
<
|
|
263
|
+
<BinaryString name="Tags"></BinaryString>
|
|
264
264
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
265
265
|
local CollectionService = game:GetService("CollectionService")
|
|
266
266
|
|
|
@@ -325,7 +325,7 @@ end
|
|
|
325
325
|
<Content name="LinkedSource"><null></null></Content>
|
|
326
326
|
<string name="Name">get_script_source</string>
|
|
327
327
|
<int64 name="SourceAssetId">-1</int64>
|
|
328
|
-
<
|
|
328
|
+
<BinaryString name="Tags"></BinaryString>
|
|
329
329
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
330
330
|
if targetInstance:IsA("LuaSourceContainer") then
|
|
331
331
|
return { status = "success", result = targetInstance.Source }
|
|
@@ -345,7 +345,7 @@ end
|
|
|
345
345
|
<Content name="LinkedSource"><null></null></Content>
|
|
346
346
|
<string name="Name">insert_asset</string>
|
|
347
347
|
<int64 name="SourceAssetId">-1</int64>
|
|
348
|
-
<
|
|
348
|
+
<BinaryString name="Tags"></BinaryString>
|
|
349
349
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
350
350
|
local InsertService = game:GetService("InsertService")
|
|
351
351
|
local assetId = tonumber(data)
|
|
@@ -376,7 +376,7 @@ end
|
|
|
376
376
|
<Content name="LinkedSource"><null></null></Content>
|
|
377
377
|
<string name="Name">Main</string>
|
|
378
378
|
<int64 name="SourceAssetId">-1</int64>
|
|
379
|
-
<
|
|
379
|
+
<BinaryString name="Tags"></BinaryString>
|
|
380
380
|
<token name="RunContext">0</token>
|
|
381
381
|
<ProtectedString name="Source"><![CDATA[local HttpService = game:GetService("HttpService")
|
|
382
382
|
local LogService = game:GetService("LogService")
|
|
@@ -700,7 +700,7 @@ end)
|
|
|
700
700
|
<Content name="LinkedSource"><null></null></Content>
|
|
701
701
|
<string name="Name">patch_script_source</string>
|
|
702
702
|
<int64 name="SourceAssetId">-1</int64>
|
|
703
|
-
<
|
|
703
|
+
<BinaryString name="Tags"></BinaryString>
|
|
704
704
|
<ProtectedString name="Source"><![CDATA[local HttpService = game:GetService("HttpService")
|
|
705
705
|
|
|
706
706
|
return function(targetInstance, data, ctx, targetPath)
|
|
@@ -810,7 +810,7 @@ end
|
|
|
810
810
|
<Content name="LinkedSource"><null></null></Content>
|
|
811
811
|
<string name="Name">rollback_script</string>
|
|
812
812
|
<int64 name="SourceAssetId">-1</int64>
|
|
813
|
-
<
|
|
813
|
+
<BinaryString name="Tags"></BinaryString>
|
|
814
814
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
815
815
|
if targetInstance:IsA("LuaSourceContainer") then
|
|
816
816
|
local prevSource = ctx.scriptHistory[targetPath]
|
|
@@ -836,7 +836,7 @@ end
|
|
|
836
836
|
<Content name="LinkedSource"><null></null></Content>
|
|
837
837
|
<string name="Name">script_grep</string>
|
|
838
838
|
<int64 name="SourceAssetId">-1</int64>
|
|
839
|
-
<
|
|
839
|
+
<BinaryString name="Tags"></BinaryString>
|
|
840
840
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
841
841
|
local query = tostring(data)
|
|
842
842
|
if not query or query == "" then
|
|
@@ -912,7 +912,7 @@ end
|
|
|
912
912
|
<Content name="LinkedSource"><null></null></Content>
|
|
913
913
|
<string name="Name">search_instance</string>
|
|
914
914
|
<int64 name="SourceAssetId">-1</int64>
|
|
915
|
-
<
|
|
915
|
+
<BinaryString name="Tags"></BinaryString>
|
|
916
916
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
917
917
|
local searchName = tostring(data)
|
|
918
918
|
local results = {}
|
|
@@ -945,7 +945,7 @@ end
|
|
|
945
945
|
<Content name="LinkedSource"><null></null></Content>
|
|
946
946
|
<string name="Name">ui_manager</string>
|
|
947
947
|
<int64 name="SourceAssetId">-1</int64>
|
|
948
|
-
<
|
|
948
|
+
<BinaryString name="Tags"></BinaryString>
|
|
949
949
|
<ProtectedString name="Source"><![CDATA[local UIManager = {}
|
|
950
950
|
local widget = nil
|
|
951
951
|
|
|
@@ -1401,7 +1401,7 @@ return UIManager
|
|
|
1401
1401
|
<Content name="LinkedSource"><null></null></Content>
|
|
1402
1402
|
<string name="Name">update_script_source</string>
|
|
1403
1403
|
<int64 name="SourceAssetId">-1</int64>
|
|
1404
|
-
<
|
|
1404
|
+
<BinaryString name="Tags"></BinaryString>
|
|
1405
1405
|
<ProtectedString name="Source"><![CDATA[return function(targetInstance, data, ctx, targetPath)
|
|
1406
1406
|
if targetInstance:IsA("LuaSourceContainer") then
|
|
1407
1407
|
local newCode = data or ""
|