@masons/agent-network 0.5.1 → 0.5.11

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":"AAiJA,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;;;;;;;;;;;;;;;;;;;;;;;;;;kBAaI,iBAAiB;CAwXhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAiJA,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;;;;;;;;;;;;;;;;;;;;;;;;;;kBAaI,iBAAiB;CA6XhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/dist/plugin.js CHANGED
@@ -133,14 +133,15 @@ const plugin = {
133
133
  //
134
134
  // History: 0.5.0 mounted this hook at `plugin.setup.configureInteractive`
135
135
  // — a path no OpenClaw version reads, so `channels login` never worked.
136
- // 0.5.1 corrects the mount point and adopts the 2026.4.x signature.
137
- // Tracking: #1264 follow-up (login hook fix).
136
+ // 0.5.1 corrected the mount point. 0.5.2 surfaces register errors
137
+ // instead of silently catching them — the previous "cheap guard"
138
+ // (`catch {}`) hid every kind of register-time failure including the
139
+ // ones we care about (schema validation, missing modules, IO errors).
138
140
  //
139
- // The try/catch is kept as defense-in-depth from earlier OpenClaw versions
140
- // where missing credentials caused `registerChannel` to throw. We have
141
- // not re-verified whether 2026.4.x still throws on the empty-creds path
142
- // now that `auth.login` is present — leaving the guard in place is cheap
143
- // and never wrong; removing it would require positive verification first.
141
+ // The new contract: log the error visibly AND re-throw, so OpenClaw
142
+ // surfaces the failure to the user rather than running with an
143
+ // un-registered channel that mysteriously "doesn't support login".
144
+ // Per Mingke's review of the 0.5.1 T1 failure (#1264, 2026-04-19).
144
145
  try {
145
146
  api.registerChannel({
146
147
  plugin: {
@@ -149,8 +150,9 @@ const plugin = {
149
150
  },
150
151
  });
151
152
  }
152
- catch {
153
- // Silently ignore — channel will be registered after setup + restart.
153
+ catch (err) {
154
+ console.error("[@masons/agent-network] api.registerChannel failed — channel will be unavailable:", err);
155
+ throw err;
154
156
  }
155
157
  // --- Layer B: Per-turn context injection ---
156
158
  // Injects agent network awareness into every LLM turn via before_prompt_build.
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.5.1";
2
+ export declare const PLUGIN_VERSION = "0.5.11";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,cAAc,WAAW,CAAC"}
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.5.1";
2
+ export const PLUGIN_VERSION = "0.5.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masons/agent-network",
3
- "version": "0.5.1",
3
+ "version": "0.5.11",
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)",