@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 +2 -50
- package/dist/channel.d.ts.map +1 -1
- package/dist/channel.js +7 -8
- package/dist/plugin.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -1
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
|
-
|
|
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
|
package/dist/channel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"
|
|
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
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
-
|
|
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);
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -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;
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
}
|