bereach-openclaw 1.5.1-beta.1 → 1.5.1

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,7 +1,7 @@
1
1
  {
2
2
  "id": "bereach-openclaw",
3
3
  "name": "BeReach",
4
- "version": "1.5.1-beta.1",
4
+ "version": "1.5.1",
5
5
  "description": "LinkedIn outreach automation — 75+ tools, hook-based enforcement, dynamic context",
6
6
  "configSchema": {
7
7
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bereach-openclaw",
3
- "version": "1.5.1-beta.1",
3
+ "version": "1.5.1",
4
4
  "description": "BeReach LinkedIn automation plugin for OpenClaw",
5
5
  "license": "AGPL-3.0",
6
6
  "exports": {
@@ -47,14 +47,14 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@bereach/tools": "*",
50
- "bereach": "^1.5.0"
50
+ "bereach": "1.5.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@playwright/test": "^1.52.0",
54
53
  "@types/node": "^25.5.0",
55
54
  "@upstash/box": "^0.1.30",
56
55
  "tsx": "^4.21.0",
57
56
  "typescript": "^6.0.2",
57
+ "@playwright/test": "^1.52.0",
58
58
  "vitest": "^4.1.2",
59
59
  "zod": "^4.3.6"
60
60
  }
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: bereach
3
3
  description: "Automate LinkedIn outreach via BeReach (bereach.ai). Use when: prospecting, engaging posts, scraping engagement, searching LinkedIn, managing inbox, running campaigns, managing invitations, analytics, company pages, Sales Navigator, content engagement, feed monitoring. Requires BEREACH_API_KEY."
4
- lastUpdatedAt: 1775559507
4
+ lastUpdatedAt: 1775561761
5
5
  metadata: { "openclaw": { "requires": { "env": ["BEREACH_API_KEY"] }, "primaryEnv": "BEREACH_API_KEY" } }
6
6
  ---
7
7
 
@@ -45,7 +45,7 @@ At install or upgrade, set up the workspace with these templates:
45
45
 
46
46
  When the user provides their BeReach API key (`brc_...`):
47
47
 
48
- 1. Run the `/bereach-set-key brc_xxx` command with the key they gave you
48
+ 1. Tell them to paste this command in chat: `/bereach-set-key brc_THEIR_KEY` (replacing with their actual key)
49
49
  2. Tell them to restart the gateway: `openclaw gateway restart`
50
50
  3. After restart, start a new chat with `/new`
51
51
 
@@ -1011,7 +1011,21 @@ export function registerContextHook(api: any, apiKey: string | undefined, state:
1011
1011
  const resolvedKey = api?.pluginConfig?.BEREACH_API_KEY ?? api?.pluginConfig?.apiKey ?? apiKey;
1012
1012
  const key = typeof resolvedKey === "string" && resolvedKey.trim() ? resolvedKey.trim() : undefined;
1013
1013
  if (!key) {
1014
- return { appendSystemContext: "BeReach plugin is installed but API key is not configured. Ask the user to set it via /bereach-setup or plugin settings." };
1014
+ return { appendSystemContext: [
1015
+ "IMPORTANT: BeReach plugin is installed but no API key is configured.",
1016
+ "",
1017
+ "If the user provides their BeReach API key (a string starting with brc_):",
1018
+ "- Tell them to paste this command in chat: /bereach-set-key brc_THEIR_KEY",
1019
+ "- Then restart the gateway: openclaw gateway restart",
1020
+ "- Then start a new chat: /new",
1021
+ "",
1022
+ "If the user has NOT provided a key yet:",
1023
+ "- Ask them for their BeReach API key",
1024
+ "- They can get one at https://bereach.ai/token",
1025
+ "",
1026
+ "The /bereach-set-key command saves the key securely in the plugin config.",
1027
+ "Do NOT suggest environment variables, config.patch, or any other method.",
1028
+ ].join("\n") };
1015
1029
  }
1016
1030
 
1017
1031
  // Detect task mode
package/src/index.ts CHANGED
@@ -53,13 +53,7 @@ export default function register(api: any) {
53
53
 
54
54
  const apiKey = resolveApiKey(api);
55
55
  if (!apiKey) {
56
- log("WARNING: BEREACH_API_KEY is not configured. Set it via plugin settings.");
57
- if (typeof api?.injectContext === "function") {
58
- api.injectContext({
59
- key: "bereach-warning",
60
- content: "BeReach plugin is installed but BEREACH_API_KEY is not configured. Set it via plugin settings to enable LinkedIn automation.",
61
- });
62
- }
56
+ log("WARNING: BEREACH_API_KEY is not configured. Setup instructions injected via before_prompt_build hook.");
63
57
  }
64
58
 
65
59
  const config: Partial<PluginConfig> = {