openclaw-glance-plugin 0.1.4 → 0.1.6

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,6 +1,5 @@
1
1
  {
2
2
  "id": "glance-bridge",
3
- "channels": ["glance-bridge"],
4
3
  "skills": ["./skills"],
5
4
  "configSchema": {
6
5
  "type": "object",
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "openclaw-glance-plugin",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "OpenClaw plugin client for ticker-monitor openclaw-bridge",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
+ "openclaw.extensions": ["./index.js"],
7
8
  "exports": {
8
9
  ".": "./index.js",
9
10
  "./sdk": "./src/index.js"
@@ -9,7 +9,7 @@ description: 智能盯盘插件,用于监控A股、港股、比特币等金融
9
9
 
10
10
  1. **前置条件**(已完成):
11
11
  - 插件/包已安装并可用(由宿主环境预先完成)
12
- - 运行时已按目标模式启动(daemon 或 OpenClaw 插件模式)
12
+ - 宿主已启动插件运行时(长连接由插件后台维护)
13
13
 
14
14
  2. **用户请求盯盘时**,解析用户需求提取:
15
15
  - `productCode`: 产品代码
@@ -189,13 +189,14 @@ function registerControlTools(api, controlApi) {
189
189
 
190
190
  const plugin = {
191
191
  id: 'glance-bridge',
192
- name: 'Glance Bridge Channel',
193
- description: 'OpenClaw bridge long connection plugin',
192
+ name: 'Glance Bridge Tools',
193
+ description: 'OpenClaw tool plugin with bridge long connection runtime',
194
194
  register(api) {
195
195
  const pluginConfig =
196
- api?.config?.channels?.['glance-bridge'] ||
197
- api?.config?.channels?.glanceBridge ||
198
- api?.config?.glanceBridge ||
196
+ api?.config?.plugins?.entries?.['glance-bridge']?.config ||
197
+ api?.config?.plugins?.entries?.glanceBridge?.config ||
198
+ api?.config?.plugins?.['glance-bridge']?.config ||
199
+ api?.config?.plugins?.glanceBridge?.config ||
199
200
  {};
200
201
 
201
202
  const startupPromise = startPluginRuntime({