@eyeclaw/eyeclaw 1.0.3 → 1.0.5

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
@@ -19,14 +19,26 @@ const plugin = {
19
19
  register(api: OpenClawPluginApi) {
20
20
  const runtime = api.runtime
21
21
  const logger = runtime.logging.getChildLogger({ plugin: 'eyeclaw' })
22
- const config = runtime.config as any
23
22
 
24
- // Debug: log entire config structure
25
- logger.info('🔍 Full config:', JSON.stringify(config, null, 2))
26
- logger.info('🔍 Channels config:', JSON.stringify(config?.channels, null, 2))
23
+ // Try multiple ways to access config
24
+ const runtimeConfig = runtime.config as any
25
+ const apiConfig = (api as any).config
26
+ const pluginConfig = (api as any).pluginConfig
27
27
 
28
- // Get EyeClaw config from channels.eyeclaw
29
- const eyeclawConfig: PluginConfig = config?.channels?.eyeclaw || {}
28
+ // Debug: log entire config structure from different sources
29
+ logger.info('🔍 runtime.config:', JSON.stringify(runtimeConfig, null, 2))
30
+ logger.info('🔍 api.config:', JSON.stringify(apiConfig, null, 2))
31
+ logger.info('🔍 api.pluginConfig:', JSON.stringify(pluginConfig, null, 2))
32
+ logger.info('🔍 api keys:', Object.keys(api).join(', '))
33
+ logger.info('🔍 runtime keys:', Object.keys(runtime).join(', '))
34
+
35
+ // Try to get config from different sources
36
+ let eyeclawConfig: PluginConfig =
37
+ pluginConfig ||
38
+ apiConfig ||
39
+ runtimeConfig?.channels?.eyeclaw ||
40
+ runtimeConfig?.plugins?.eyeclaw ||
41
+ {}
30
42
 
31
43
  // Debug: log eyeclaw config
32
44
  logger.info('🔍 EyeClaw config:', JSON.stringify(eyeclawConfig, null, 2))
@@ -29,7 +29,6 @@
29
29
  "type": "number",
30
30
  "description": "Heartbeat interval in milliseconds"
31
31
  }
32
- },
33
- "required": ["botId", "sdkToken"]
32
+ }
34
33
  }
35
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyeclaw/eyeclaw",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "EyeClaw channel plugin for OpenClaw - Connect your local OpenClaw instance to EyeClaw platform",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
package/src/cli.ts CHANGED
@@ -51,7 +51,7 @@ function main() {
51
51
  // Default: show usage
52
52
  console.log(USAGE)
53
53
  console.log(chalk.yellow('ℹ This is an OpenClaw plugin. Please install it using:'))
54
- console.log(chalk.cyan(' openclaw plugins install @eyeclaw/sdk\n'))
54
+ console.log(chalk.cyan(' openclaw plugins install @eyeclaw/eyeclaw\n'))
55
55
  }
56
56
 
57
57
  main()