@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 +18 -6
- package/openclaw.plugin.json +1 -2
- package/package.json +1 -1
- package/src/cli.ts +1 -1
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
|
-
//
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
//
|
|
29
|
-
|
|
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))
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
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/
|
|
54
|
+
console.log(chalk.cyan(' openclaw plugins install @eyeclaw/eyeclaw\n'))
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
main()
|