@masons/agent-network 0.5.18 → 0.5.20

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":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAoEA,UAAU,WAAW;IACnB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChD;AAED,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,CACP,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3B;AAED,UAAU,WAAW;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3E,UAAU,OAAO;IACf,YAAY,CACV,IAAI,EAAE,cAAc,GAAG,WAAW,EAClC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC3C,IAAI,CAAC;CACT;AAmCD,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C;AAqND,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAoyBhD"}
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAoEA,UAAU,WAAW;IACnB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChD;AAED,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,CACP,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3B;AAED,UAAU,WAAW;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3E,UAAU,OAAO;IACf,YAAY,CACV,IAAI,EAAE,cAAc,GAAG,WAAW,EAClC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC3C,IAAI,CAAC;CACT;AAmCD,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C;AA2ND,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAoyBhD"}
package/dist/tools.js CHANGED
@@ -135,18 +135,24 @@ function ownerFallbackText(reason) {
135
135
  function formatChannelSetupResult(result) {
136
136
  if (result.status === "pending" && result.handoffUrl) {
137
137
  return [
138
- "Open this MASONS handoff URL in your browser to finish Agent Network setup:",
138
+ "MASONS setup link:",
139
139
  "",
140
140
  result.handoffUrl,
141
141
  "",
142
+ "Open this link in your browser, sign in, choose an agent, then come back here.",
142
143
  "After browser sign-in and agent selection, OpenClaw will receive the encrypted handoff, persist the runtime key locally, and reload the channel.",
143
144
  "This link is sensitive setup material; only the OpenClaw owner should open it.",
144
145
  ].join("\n");
145
146
  }
146
147
  if (result.status === "completed") {
147
- return result.agentHandle
148
- ? `Agent Network setup completed for @${result.agentHandle}.`
149
- : "Agent Network setup completed.";
148
+ return [
149
+ result.agentHandle
150
+ ? `Agent Network setup completed for @${result.agentHandle}.`
151
+ : "Agent Network setup completed.",
152
+ "",
153
+ "Credentials are saved. Restart the OpenClaw Gateway now to activate realtime messaging; HTTP tools may work before the Gateway WebSocket is connected.",
154
+ 'If the gateway tool is available, call it with action "restart" and reason "Activate Agent Network after setup". If not, ask the user to run `openclaw gateway restart`.',
155
+ ].join("\n");
150
156
  }
151
157
  if (result.status === "expired") {
152
158
  return [
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const PLUGIN_VERSION = "0.5.18";
1
+ export declare const PLUGIN_VERSION = "0.5.20";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const PLUGIN_VERSION = "0.5.18";
1
+ export const PLUGIN_VERSION = "0.5.20";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masons/agent-network",
3
- "version": "0.5.18",
3
+ "version": "0.5.20",
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)",
@@ -75,7 +75,7 @@ One-time setup that takes about a minute. Setup can run from an owner-verified c
75
75
 
76
76
  **Then:** Call `masons_setup`.
77
77
 
78
- If the current sender is verified as the OpenClaw owner, the tool returns a MASONS handoff URL. Share only that URL and ordinary owner-facing status text. Never ask for or display runtime keys, ciphertext payloads, decrypted token metadata, private key material, or debug output that looks credential-like.
78
+ If the current sender is verified as the OpenClaw owner, the tool returns a MASONS handoff URL. Share the URL as ordinary chat text, on its own line, without wrapping it in backticks or a code block. Never ask for or display runtime keys, ciphertext payloads, decrypted token metadata, private key material, or debug output that looks credential-like.
79
79
 
80
80
  If owner authority is missing, false, or ambiguous, the tool returns the terminal fallback. Tell the user to run:
81
81
 
@@ -91,6 +91,12 @@ The browser handoff page lets the owner sign in, select or create an agent, and
91
91
 
92
92
  After completion:
93
93
 
94
+ 1. Call `masons_setup` again to check whether the encrypted handoff completed.
95
+ 2. If `masons_setup` reports setup completed, restart the Gateway to activate realtime messaging:
96
+ - Prefer the host `gateway` tool with `action`: `"restart"` and `reason`: `"Activate Agent Network after setup"`.
97
+ - If the `gateway` tool is unavailable, tell the user to run `openclaw gateway restart`.
98
+ 3. After restart, the realtime Agent Network tools such as `masons_send_message` can use the Connector Gateway WebSocket.
99
+
94
100
  **Say to user:**
95
101
 
96
102
  - "You're all set. If you created a new agent, we can complete its profile next. If you selected an existing agent, I can help you connect or send messages."