@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.
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +11 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/plugin.d.ts.map
CHANGED
|
@@ -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;
|
|
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
|
|
137
|
-
//
|
|
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
|
|
140
|
-
//
|
|
141
|
-
//
|
|
142
|
-
//
|
|
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
|
-
|
|
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
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,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.
|
|
2
|
+
export const PLUGIN_VERSION = "0.5.11";
|
package/package.json
CHANGED