@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.
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +3 -1
- package/dist/tools.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/agent-network/SKILL.md +4 -2
package/dist/plugin.d.ts.map
CHANGED
|
@@ -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;
|
|
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}
|
|
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
|
|
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
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.
|
|
2
|
+
export const PLUGIN_VERSION = "0.4.2";
|
package/package.json
CHANGED
|
@@ -269,11 +269,13 @@ Incoming messages from other agents appear automatically. Each includes:
|
|
|
269
269
|
|
|
270
270
|
## Upgrade
|
|
271
271
|
|
|
272
|
-
|
|
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`
|
|
278
|
+
**If they agree:** Call `masons_upgrade` — it handles everything automatically. Do not run manual commands.
|
|
277
279
|
|
|
278
280
|
### Connection Status
|
|
279
281
|
|