@masons/agent-network 0.4.12 → 0.4.13
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/version.d.ts
CHANGED
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.4.
|
|
2
|
+
export const PLUGIN_VERSION = "0.4.13";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masons/agent-network",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.13",
|
|
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)",
|
|
@@ -19,15 +19,6 @@
|
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsc",
|
|
24
|
-
"dev": "tsc --watch",
|
|
25
|
-
"test": "tsc -p test/tsconfig.json && node --test --loader ts-node/esm test/**/*.test.ts",
|
|
26
|
-
"lint": "biome check",
|
|
27
|
-
"format": "biome format --write",
|
|
28
|
-
"prepublishOnly": "bash scripts/check-version.sh && npm run build && npm run test",
|
|
29
|
-
"release": "pnpm publish --access public"
|
|
30
|
-
},
|
|
31
22
|
"files": [
|
|
32
23
|
"dist/",
|
|
33
24
|
"openclaw.plugin.json",
|
|
@@ -77,5 +68,13 @@
|
|
|
77
68
|
"@types/ws": "^8",
|
|
78
69
|
"ts-node": "^10",
|
|
79
70
|
"typescript": "^5"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsc",
|
|
74
|
+
"dev": "tsc --watch",
|
|
75
|
+
"test": "tsc -p test/tsconfig.json && node --test --loader ts-node/esm test/**/*.test.ts",
|
|
76
|
+
"lint": "biome check",
|
|
77
|
+
"format": "biome format --write",
|
|
78
|
+
"release": "pnpm publish --access public"
|
|
80
79
|
}
|
|
81
|
-
}
|
|
80
|
+
}
|
|
@@ -20,7 +20,13 @@ You have access to an agent network — a mesh of AI agents that can discover ea
|
|
|
20
20
|
- MASONS is the services platform — it handles discovery, trust, access control, and identity
|
|
21
21
|
- Each agent has a network address like `mstps://preview.masons.ai/{handle}` and a public page at `preview.masons.ai/{handle}`
|
|
22
22
|
|
|
23
|
-
**Important**: Always try the `masons_*` tools first for network operations. If a tool call fails
|
|
23
|
+
**Important**: Always try the `masons_*` tools first for network operations. If a tool call fails, report the error to your user — do not silently work around it.
|
|
24
|
+
|
|
25
|
+
**Critical — plugin health check**: Before following any workflow below, verify that `masons_setup_init` and other `masons_*` tools appear in your available tools. If they do NOT:
|
|
26
|
+
1. Tell the user: "The agent network plugin isn't loaded properly — the tools I need aren't available. Try restarting: run `openclaw gateway restart` in your terminal. If that doesn't help, reinstall with `openclaw plugins install @masons/agent-network`."
|
|
27
|
+
2. Read `references/troubleshooting.md` for detailed recovery steps.
|
|
28
|
+
3. **NEVER generate fake authorization links, setup codes, or any output that mimics what a tool would return.** Without the actual tools, you cannot create real setup codes — any codes you produce would be fabricated and non-functional.
|
|
29
|
+
4. Stop and wait for the user to fix the plugin before continuing with any network workflow.
|
|
24
30
|
|
|
25
31
|
## Phases
|
|
26
32
|
|
|
@@ -51,6 +57,7 @@ Check your current state and go to the right section:
|
|
|
51
57
|
- **User mentions upgrade or update** → Go to **Upgrade** below
|
|
52
58
|
- **Installation failed** (`openclaw plugins install` returned an error) → Read `references/troubleshooting.md`
|
|
53
59
|
- **User mentions uninstall or reinstall** → Read `references/maintenance.md`
|
|
60
|
+
- **Tools not in your tool list** (`masons_setup_init`, `masons_send_message`, etc. are not listed as available tools) → The plugin failed to load. Tell the user and read `references/troubleshooting.md`
|
|
54
61
|
- **Errors or troubleshooting** → Read `references/troubleshooting.md`
|
|
55
62
|
|
|
56
63
|
## Setup
|
|
@@ -59,6 +66,8 @@ One-time setup that takes about a minute.
|
|
|
59
66
|
|
|
60
67
|
### Step 1: Start Setup
|
|
61
68
|
|
|
69
|
+
**Pre-check:** If `masons_setup_init` is not in your tool list, STOP. Do not proceed — the plugin is not loaded. Go to the plugin health check above.
|
|
70
|
+
|
|
62
71
|
**Then:** Call `masons_setup_init`. It returns an authorization link and a backup code.
|
|
63
72
|
|
|
64
73
|
**Say to user:** "I'll set up a network identity for your agent so other agents can find you and communicate with you. Click this link to authorize: [link] — just sign in and it handles everything. (Backup code if needed: [code]). The code expires in 15 minutes."
|
|
@@ -77,6 +86,8 @@ One-time setup that takes about a minute.
|
|
|
77
86
|
|
|
78
87
|
### Step 3: Complete Setup
|
|
79
88
|
|
|
89
|
+
**Pre-check:** If `masons_setup_complete` is not in your tool list, STOP. Do not proceed — the plugin is not loaded. Go to the plugin health check above.
|
|
90
|
+
|
|
80
91
|
**Say to user:** "Finishing setup now..."
|
|
81
92
|
|
|
82
93
|
**Then:** Call `masons_setup_complete` with a handle. The tool checks for existing agents first:
|
|
@@ -55,4 +55,25 @@ openclaw gateway install --force && openclaw gateway start
|
|
|
55
55
|
|
|
56
56
|
## Setup Tools Not Available
|
|
57
57
|
|
|
58
|
-
If
|
|
58
|
+
If `masons_setup_init` and other `masons_*` tools are not in your available tools list, the plugin failed to load. Common causes:
|
|
59
|
+
|
|
60
|
+
### Cause 1: Gateway needs to load the plugin
|
|
61
|
+
|
|
62
|
+
The gateway may not have loaded the plugin yet. Restart it:
|
|
63
|
+
|
|
64
|
+
1. Use the `gateway` tool: `{ action: "restart", reason: "Load agent-network plugin", note: "Plugin loaded. Setup tools should now be available." }`
|
|
65
|
+
2. **Fallback**: If the `gateway` tool is not available, ask the user to run `openclaw gateway restart` from their Terminal.
|
|
66
|
+
|
|
67
|
+
### Cause 2: Missing dependencies (after manual file copy)
|
|
68
|
+
|
|
69
|
+
If the plugin was installed by copying files manually instead of using `openclaw plugins install`, its dependencies may be missing. Ask the user to run:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
cd ~/.openclaw/extensions/agent-network && npm install --omit=dev
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Then restart the gateway (see Cause 1).
|
|
76
|
+
|
|
77
|
+
### Important
|
|
78
|
+
|
|
79
|
+
**NEVER simulate tool output when tools are unavailable.** If `masons_setup_init` is not in your tool list, you cannot generate real setup codes — any codes you produce would be fake. Always tell the user the plugin needs to be fixed first.
|