@masons/agent-network 0.6.8 → 0.6.9

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/channel.d.ts CHANGED
@@ -1,58 +1,10 @@
1
+ import type { ChannelPlugin } from "openclaw/plugin-sdk/channel-core";
1
2
  import type { AgentNetworkAccount } from "./config-schema.js";
2
3
  export declare function getOwnerPassportAddress(): string | null;
3
4
  export declare function consumeIdentityLinkingNudge(): boolean;
4
5
  export declare function _setNudgePendingForTesting(value: boolean): void;
5
- interface ChannelMeta {
6
- name: string;
7
- description: string;
8
- icon: string;
9
- }
10
- interface ChannelCapabilities {
11
- outbound: boolean;
12
- inbound: boolean;
13
- groups: boolean;
14
- attachments: boolean;
15
- }
16
- interface ChannelConfigAdapter<T> {
17
- listAccountIds(cfg: Record<string, unknown>): string[];
18
- resolveAccount(cfg: Record<string, unknown>, accountId?: string): T;
19
- isConfigured?(account: T, cfg: Record<string, unknown>): boolean;
20
- isEnabled?(account: T, cfg: Record<string, unknown>): boolean;
21
- }
22
- interface OutboundDeliveryResult {
23
- channel: string;
24
- messageId: string;
25
- }
26
- interface ChannelOutboundContext {
27
- text: string;
28
- to: string;
29
- accountId: string;
30
- }
31
- interface ChannelOutboundAdapter {
32
- deliveryMode: "direct" | "gateway" | "hybrid";
33
- sendText?(ctx: ChannelOutboundContext): Promise<OutboundDeliveryResult>;
34
- }
35
- interface ChannelGatewayContext<T = unknown> {
36
- cfg: Record<string, unknown>;
37
- accountId: string;
38
- account: T;
39
- runtime: unknown;
40
- abortSignal: AbortSignal;
41
- }
42
6
  declare function withAgentNetworkSilentReplyPolicy(cfg: Record<string, unknown>): Record<string, unknown>;
43
7
  export declare const _withAgentNetworkSilentReplyPolicyForTesting: typeof withAgentNetworkSilentReplyPolicy;
44
- interface ChannelGatewayAdapter<T = unknown> {
45
- startAccount?(ctx: ChannelGatewayContext<T>): Promise<unknown>;
46
- stopAccount?(ctx: ChannelGatewayContext<T>): Promise<void>;
47
- }
48
- interface AgentNetworkChannelPlugin {
49
- id: string;
50
- meta: ChannelMeta;
51
- capabilities: ChannelCapabilities;
52
- config: ChannelConfigAdapter<AgentNetworkAccount>;
53
- outbound: ChannelOutboundAdapter;
54
- gateway: ChannelGatewayAdapter<AgentNetworkAccount>;
55
- }
56
- export declare const agentNetworkChannel: AgentNetworkChannelPlugin;
8
+ export declare const agentNetworkChannel: ChannelPlugin<AgentNetworkAccount>;
57
9
  export {};
58
10
  //# sourceMappingURL=channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAyC9D,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,IAAI,CAEvD;AAOD,wBAAgB,2BAA2B,IAAI,OAAO,CAIrD;AAGD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAE/D;AAUD,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,oBAAoB,CAAC,CAAC;IAC9B,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,CAAC;IACvD,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IACpE,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,O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ClB,YAAY,EAAE,mBAAmB,CAAC;IAClC,MAAM,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAClD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,OAAO,EAAE,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;CACrD;AAyaD,eAAO,MAAM,mBAAmB,EAAE,yBA+NjC,CAAC"}
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,kCAAkC,CAAC;AAa1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAyC9D,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,IAAI,CAEvD;AAOD,wBAAgB,2BAA2B,IAAI,OAAO,CAIrD;AAGD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAE/D;AAaD,iBAAS,iCAAiC,CACxC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6BzB;AAED,eAAO,MAAM,4CAA4C,0CACtB,CAAC;AAobpC,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,mBAAmB,CAqOlE,CAAC"}
package/dist/channel.js CHANGED
@@ -267,15 +267,14 @@ const accounts = new Map();
267
267
  export const agentNetworkChannel = {
268
268
  id: "agent-network",
269
269
  meta: {
270
- name: "Agent Network",
271
- description: "Connect your Agent to the agent network for real-time communication",
272
- icon: "globe",
270
+ id: "agent-network",
271
+ label: "Agent Network",
272
+ selectionLabel: "MASONS Agent Network",
273
+ docsPath: "https://masons.ai",
274
+ blurb: "Connect your agent to the MASONS Agent Network for real-time agent-to-agent communication.",
273
275
  },
274
276
  capabilities: {
275
- outbound: true,
276
- inbound: true,
277
- groups: false,
278
- attachments: false,
277
+ chatTypes: ["direct"],
279
278
  },
280
279
  config: {
281
280
  listAccountIds() {
@@ -315,7 +314,7 @@ export const agentNetworkChannel = {
315
314
  outbound: {
316
315
  deliveryMode: "direct",
317
316
  async sendText(ctx) {
318
- const state = accounts.get(ctx.accountId);
317
+ const state = ctx.accountId ? accounts.get(ctx.accountId) : undefined;
319
318
  if (!state)
320
319
  return { channel: "agent-network", messageId: "" };
321
320
  const result = await state.conversationManager.send(ctx.to, ctx.text);
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAqJA,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,YAAY,CACV,IAAI,EAAE,OAAO,EACb,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC3C,IAAI,CAAC;IACR,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;CAiYhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAqJA,UAAU,iBAAiB;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,YAAY,CACV,IAAI,EAAE,OAAO,EACb,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC3C,IAAI,CAAC;IACR,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;CAmYhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const PLUGIN_VERSION = "0.6.8";
1
+ export declare const PLUGIN_VERSION = "0.6.9";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const PLUGIN_VERSION = "0.6.8";
1
+ export const PLUGIN_VERSION = "0.6.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masons/agent-network",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "MASONS Agent Network — OpenClaw channel plugin for connecting agent runtimes to the Agent Network over MSTP.",
5
5
  "license": "MIT",
6
6
  "author": "MASONS.ai <hello@masons.ai> (https://masons.ai)",
@@ -37,6 +37,9 @@
37
37
  "skills/agent-network/"
38
38
  ],
39
39
  "openclaw": {
40
+ "compat": {
41
+ "pluginApi": ">=2026.3.28"
42
+ },
40
43
  "extensions": [
41
44
  "./dist/plugin.js"
42
45
  ]
@@ -91,6 +94,7 @@
91
94
  "@types/debug": "^4.1.12",
92
95
  "@types/node": "^25",
93
96
  "@types/ws": "^8",
97
+ "openclaw": "2026.6.11",
94
98
  "ts-node": "^10",
95
99
  "typescript": "^5"
96
100
  }