@eyeclaw/eyeclaw 2.2.2 → 2.2.3

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/index.ts CHANGED
@@ -26,7 +26,7 @@ const eyeclawPlugin = {
26
26
  const rawConfig = api.config?.plugins?.entries?.eyeclaw?.config
27
27
  const config: EyeClawConfig = {
28
28
  sdkToken: rawConfig?.sdkToken || '',
29
- botId: rawConfig?.botId || '',
29
+ botId: rawConfig?.botId ? String(rawConfig.botId) : '',
30
30
  serverUrl: rawConfig?.serverUrl || '',
31
31
  }
32
32
 
@@ -8,7 +8,10 @@
8
8
  "description": "SDK token for authentication"
9
9
  },
10
10
  "botId": {
11
- "type": "string",
11
+ "oneOf": [
12
+ { "type": "string" },
13
+ { "type": "number" }
14
+ ],
12
15
  "description": "Bot ID in EyeClaw Rails app"
13
16
  },
14
17
  "serverUrl": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyeclaw/eyeclaw",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "EyeClaw plugin for OpenClaw - HTTP SSE streaming + WebSocket client",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -191,7 +191,13 @@ export const eyeclawConfigSchema = {
191
191
  type: 'object',
192
192
  properties: {
193
193
  sdkToken: { type: 'string', description: 'EyeClaw SDK Token' },
194
- botId: { type: 'string', description: 'Bot ID in EyeClaw Rails app' },
194
+ botId: {
195
+ oneOf: [
196
+ { type: 'string' },
197
+ { type: 'number' }
198
+ ],
199
+ description: 'Bot ID in EyeClaw Rails app'
200
+ },
195
201
  serverUrl: { type: 'string', description: 'EyeClaw Rails server URL' },
196
202
  },
197
203
  },