@scotthuang/openclaw-bytedance 0.1.4 → 0.1.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.
@@ -2,7 +2,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
2
  import { createByteDanceWebSearchProvider } from "./src/bytedance-web-search-provider.js";
3
3
  import { setPluginLogger } from "./src/logger.js";
4
4
  export default definePluginEntry({
5
- id: "bytedance-search",
5
+ id: "bytedance",
6
6
  name: "ByteDance Volcengine Search",
7
7
  description: "OpenClaw plugin for ByteDance Volcengine Ark: web search with pre-configured API key.",
8
8
  register(api) {
@@ -1 +1 @@
1
- {"version":3,"file":"index-search.js","sourceRoot":"","sources":["../index-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAe,iBAAiB,CAAC;IAC/B,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,uFAAuF;IACzF,QAAQ,CAAC,GAAG;QACV,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC5B,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,mFAAmF,CACpF,CAAC;QACF,GAAG,CAAC,yBAAyB,CAAC,gCAAgC,EAAE,CAAC,CAAC;QAClE,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"index-search.js","sourceRoot":"","sources":["../index-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAe,iBAAiB,CAAC;IAC/B,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,uFAAuF;IACzF,QAAQ,CAAC,GAAG;QACV,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC5B,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,mFAAmF,CACpF,CAAC;QACF,GAAG,CAAC,yBAAyB,CAAC,gCAAgC,EAAE,CAAC,CAAC;QAClE,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAKA,wBAeG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAMA,wBAgBG"}
package/dist/index.js CHANGED
@@ -1,15 +1,17 @@
1
1
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
+ import { createByteDanceWebSearchProvider } from "./src/bytedance-web-search-provider.js";
2
3
  import { setPluginLogger } from "./src/logger.js";
3
4
  import { bytedanceMediaUnderstandingProvider } from "./src/media-understanding-provider.js";
4
5
  export default definePluginEntry({
5
6
  id: "bytedance",
6
7
  name: "ByteDance (Volcengine Ark)",
7
- description: "OpenClaw plugin for ByteDance Volcengine Ark: image understanding via Doubao-Seed-2.0-pro.",
8
+ description: "OpenClaw plugin for ByteDance Volcengine Ark: web search and image understanding (doubao-seed-2.0-pro).",
8
9
  register(api) {
9
10
  setPluginLogger(api.logger);
10
- api.logger.info("[bytedance] register: installing media-understanding provider (id=bytedance)");
11
+ api.logger.info("[bytedance] register: installing web-search + media-understanding providers (id=bytedance)");
12
+ api.registerWebSearchProvider(createByteDanceWebSearchProvider());
11
13
  api.registerMediaUnderstandingProvider(bytedanceMediaUnderstandingProvider);
12
- api.logger.info("[bytedance] register: vision provider installed (default=doubao-seed-2.0-pro)");
14
+ api.logger.info("[bytedance] register: providers installed (vision-default=doubao-seed-2.0-pro, search-tag=ark_mcp_server_openclaw_bytedance)");
13
15
  },
14
16
  });
15
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAE5F,eAAe,iBAAiB,CAAC;IAC/B,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,4BAA4B;IAClC,WAAW,EACT,4FAA4F;IAC9F,QAAQ,CAAC,GAAG;QACV,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC5B,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,8EAA8E,CAC/E,CAAC;QACF,GAAG,CAAC,kCAAkC,CAAC,mCAAmC,CAAC,CAAC;QAC5E,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,+EAA+E,CAChF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAE5F,eAAe,iBAAiB,CAAC;IAC/B,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,4BAA4B;IAClC,WAAW,EACT,yGAAyG;IAC3G,QAAQ,CAAC,GAAG;QACV,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC5B,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,4FAA4F,CAC7F,CAAC;QACF,GAAG,CAAC,yBAAyB,CAAC,gCAAgC,EAAE,CAAC,CAAC;QAClE,GAAG,CAAC,kCAAkC,CAAC,mCAAmC,CAAC,CAAC;QAC5E,GAAG,CAAC,MAAM,CAAC,IAAI,CACb,8HAA8H,CAC/H,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -1,21 +1,21 @@
1
1
  {
2
- "id": "bytedance-search",
2
+ "id": "bytedance",
3
3
  "activation": {
4
4
  "onStartup": false
5
5
  },
6
6
  "enabledByDefault": true,
7
- "providers": ["bytedance-search"],
8
- "autoEnableWhenConfiguredProviders": ["bytedance-search"],
7
+ "providers": ["bytedance"],
8
+ "autoEnableWhenConfiguredProviders": ["bytedance"],
9
9
  "setup": {
10
10
  "providers": [
11
11
  {
12
- "id": "bytedance-search",
12
+ "id": "bytedance",
13
13
  "envVars": ["ARK_SEARCH_API_KEY"]
14
14
  }
15
15
  ]
16
16
  },
17
17
  "contracts": {
18
- "webSearchProviders": ["bytedance-search"]
18
+ "webSearchProviders": ["bytedance"]
19
19
  },
20
20
  "uiHints": {
21
21
  "webSearch.apiKey": {
@@ -10,12 +10,13 @@
10
10
  "providers": [
11
11
  {
12
12
  "id": "bytedance",
13
- "envVars": ["ARK_API_KEY"]
13
+ "envVars": ["ARK_API_KEY", "ARK_SEARCH_API_KEY"]
14
14
  }
15
15
  ]
16
16
  },
17
17
  "contracts": {
18
- "mediaUnderstandingProviders": ["bytedance"]
18
+ "mediaUnderstandingProviders": ["bytedance"],
19
+ "webSearchProviders": ["bytedance"]
19
20
  },
20
21
  "mediaUnderstandingProviderMetadata": {
21
22
  "bytedance": {
@@ -29,6 +30,20 @@
29
30
  }
30
31
  },
31
32
  "uiHints": {
33
+ "webSearch.apiKey": {
34
+ "label": "Ark Harness search API key",
35
+ "help": "Volcengine search API key. A default key is pre-configured. Set ARK_SEARCH_API_KEY to override.",
36
+ "sensitive": true,
37
+ "placeholder": "<search-key>"
38
+ },
39
+ "webSearch.baseUrl": {
40
+ "label": "Search Base URL",
41
+ "help": "Optional. Defaults to https://open.feedcoopapi.com."
42
+ },
43
+ "webSearch.searchType": {
44
+ "label": "Default search type",
45
+ "help": "Optional. 'web' (default) or 'image'."
46
+ },
32
47
  "vision.apiKey": {
33
48
  "label": "Volcengine Ark API key",
34
49
  "help": "Volcengine Ark API key for chat/vision (Agent Plan). Falls back to ARK_API_KEY env var.",
@@ -48,6 +63,16 @@
48
63
  "type": "object",
49
64
  "additionalProperties": false,
50
65
  "properties": {
66
+ "webSearch": {
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "properties": {
70
+ "apiKey": { "type": ["string", "object"] },
71
+ "baseUrl": { "type": "string" },
72
+ "searchType": { "type": "string", "enum": ["web", "image"] },
73
+ "timeRange": { "type": "string" }
74
+ }
75
+ },
51
76
  "vision": {
52
77
  "type": "object",
53
78
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scotthuang/openclaw-bytedance",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "OpenClaw plugin for ByteDance Volcengine Ark: web search and image understanding (doubao-seed-2.0-pro)",
5
5
  "type": "module",
6
6
  "license": "MIT",