dominus-cli 2.2.0 → 2.2.1

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": "dominus-cli",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Dominus 2: a secure, MCP-native Roblox Studio engineering agent bridge.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,8 +2,12 @@
2
2
  <Item class="Script" referent="0">
3
3
  <Properties>
4
4
  <string name="Name">Dominus</string>
5
- <token name="RunContext">0</token>
6
- <string name="Source"><![CDATA[local HttpService = game:GetService("HttpService")
5
+ <token name="RunContext">3</token>
6
+ <string name="Source"><![CDATA[if script.RunContext ~= Enum.RunContext.Plugin then
7
+ return
8
+ end
9
+
10
+ local HttpService = game:GetService("HttpService")
7
11
 
8
12
  local EmbeddedBridgeToken = require(script.BridgeConfig)
9
13
  local CommandRouter = require(script.CommandRouter)
@@ -121,7 +125,7 @@ local function handleMessage(rawMessage)
121
125
  end
122
126
 
123
127
  if message.type == "server:auth_rejected" then
124
- warn("[Dominus 2] Authentication failed. Run dominus-install-plugin and restart Studio.")
128
+ warn("[Dominus 2] Authentication failed. Run dominus-install-plugin to refresh the local plugin.")
125
129
  WsClient.disconnect()
126
130
  return
127
131
  end
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "Dominus",
3
3
  "tree": {
4
- "$path": "src"
4
+ "$path": "src",
5
+ "$properties": {
6
+ "RunContext": "Plugin"
7
+ }
5
8
  }
6
9
  }
@@ -1,3 +1,7 @@
1
+ if script.RunContext ~= Enum.RunContext.Plugin then
2
+ return
3
+ end
4
+
1
5
  local HttpService = game:GetService("HttpService")
2
6
 
3
7
  local EmbeddedBridgeToken = require(script.BridgeConfig)
@@ -116,7 +120,7 @@ local function handleMessage(rawMessage)
116
120
  end
117
121
 
118
122
  if message.type == "server:auth_rejected" then
119
- warn("[Dominus 2] Authentication failed. Run dominus-install-plugin and restart Studio.")
123
+ warn("[Dominus 2] Authentication failed. Run dominus-install-plugin to refresh the local plugin.")
120
124
  WsClient.disconnect()
121
125
  return
122
126
  end