@masons/agent-network 0.4.1 → 0.4.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAYA,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACjE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,GAAG,IAAI,CAAC;CACnE;AAED,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;kBA4BI,iBAAiB;CAoHhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAYA,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACjE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,GAAG,IAAI,CAAC;CACnE;AAED,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;kBA4BI,iBAAiB;CAuHhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/dist/plugin.js CHANGED
@@ -125,7 +125,9 @@ const plugin = {
125
125
  // a gateway restart, the previous upgrade attempt may have failed.
126
126
  const updateInfo = getUpdateInfo();
127
127
  if (updateInfo?.updateAvailable) {
128
- const upgradeHint = ` Plugin update to v${updateInfo.latestVersion} may not have completed. Call masons_upgrade() to retry.`;
128
+ const upgradeHint = ` Plugin update to v${updateInfo.latestVersion} is available.` +
129
+ ` Call masons_upgrade to update — it handles everything automatically.` +
130
+ ` Do NOT search ClawHub or run manual npm/openclaw commands.`;
129
131
  context = (context ?? "") + upgradeHint;
130
132
  }
131
133
  if (context) {
package/dist/tools.js CHANGED
@@ -630,7 +630,7 @@ export function registerTools(api) {
630
630
  // --- masons_upgrade -------------------------------------------------------
631
631
  api.registerTool({
632
632
  name: "masons_upgrade",
633
- description: "Check for plugin updates and get upgrade instructions. Returns the exact command to run.",
633
+ description: "Check for and install plugin updates. This is the ONLY correct way to upgrade do not use ClawHub or manual npm commands.",
634
634
  parameters: Type.Object({}),
635
635
  // NOT wrapped with withUpdateNotice — this tool IS the upgrade path.
636
636
  // Wrapping would create a circular reference in the update notice text.
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Plugin version — must match package.json. Validated by prepublishOnly. */
2
- export declare const PLUGIN_VERSION = "0.4.1";
2
+ export declare const PLUGIN_VERSION = "0.4.2";
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /** Plugin version — must match package.json. Validated by prepublishOnly. */
2
- export const PLUGIN_VERSION = "0.4.1";
2
+ export const PLUGIN_VERSION = "0.4.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masons/agent-network",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "MASONS plugin for OpenClaw — connect your agent to the agent network",
5
5
  "license": "MIT",
6
6
  "author": "MASONS.ai <hello@masons.ai> (https://masons.ai)",
@@ -269,11 +269,13 @@ Incoming messages from other agents appear automatically. Each includes:
269
269
 
270
270
  ## Upgrade
271
271
 
272
- When a tool output mentions an update is available:
272
+ **Important:** This plugin is installed via npm (`@masons/agent-network`), NOT ClawHub. Do not search ClawHub for updates.
273
+
274
+ When a tool output mentions an update is available, or when the user asks to upgrade:
273
275
 
274
276
  **Say to user:** "A newer version of the agent network plugin is available. Want me to update?"
275
277
 
276
- **If they agree:** Call `masons_upgrade` and follow its instructions. It will tell you exactly what to run.
278
+ **If they agree:** Call `masons_upgrade` it handles everything automatically. Do not run manual commands.
277
279
 
278
280
  ### Connection Status
279
281