@acedatacloud/openclaw-provider 2026.10.1 → 2026.10.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/README.md CHANGED
@@ -4,41 +4,41 @@ An Ace Data Cloud maintained provider for LLMs, images, video, music, speech,
4
4
  Google web search and creative tools.
5
5
  Source: [AceDataCloud/OpenClawProvider](https://github.com/AceDataCloud/OpenClawProvider).
6
6
 
7
- This package is not bundled with OpenClaw. ClawHub listing, security review, and
8
- an official publisher badge are separate approval steps; this release does not
9
- claim those approvals.
7
+ Install from the [ClawHub listing](https://clawhub.ai/acedatacloud/plugins/openclaw-provider).
8
+ The package is vendor maintained and is not bundled with OpenClaw. Security
9
+ audit results are shown on the listing; an official publisher badge is a separate
10
+ review and has not been granted.
10
11
 
11
12
  ## Setup
12
13
 
13
- Download `acedatacloud-openclaw-provider-2026.10.1.tgz` from the
14
- [GitHub release](https://github.com/AceDataCloud/OpenClawProvider/releases/tag/v2026.10.1),
15
- then install the reviewed archive and enter an API key:
14
+ Install from ClawHub and enter an API key through the onboarding prompt:
16
15
 
17
16
  ```sh
18
- openclaw plugins install npm-pack:./acedatacloud-openclaw-provider-2026.10.1.tgz
17
+ openclaw plugins install clawhub:@acedatacloud/openclaw-provider
19
18
  openclaw onboard --auth-choice acedatacloud-api-key
20
19
  ```
21
20
 
22
- Review OpenClaw's source/capability prompts before accepting installation.
23
- ClawHub security review and npm publication are separate; this guide does not
24
- claim either registry has accepted the release.
21
+ Review OpenClaw's source/capability prompts before accepting installation. To pin
22
+ an exact release, append `@2026.10.3` to the ClawHub package spec. The same package
23
+ is distributed on [npm](https://www.npmjs.com/package/@acedatacloud/openclaw-provider)
24
+ and as a `.tgz` on [GitHub Releases](https://github.com/AceDataCloud/OpenClawProvider/releases).
25
25
  Get an API-consumer key from [Ace Data Cloud](https://platform.acedata.cloud).
26
26
  The default model is `acedatacloud/gpt-4.1-mini`.
27
27
 
28
28
  The chat catalog covers 90 public models across OpenAI, Claude, Gemini, Grok,
29
29
  DeepSeek, Kimi, and GLM. Each model uses its own supported Chat Completions,
30
30
  Responses, or Messages route, input capabilities, reasoning controls, and prices.
31
- See [model support and cost estimates](docs/model-catalog.md). No automatic
31
+ See [model support and cost estimates](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.10.3/docs/model-catalog.md). No automatic
32
32
  fallback changes the chosen model.
33
33
 
34
34
  Native media providers cover Nano Banana, GPT Image, Seedream, Flux, Qwen Image,
35
35
  Midjourney, Seedance, Veo, Kling, Grok Video, Happy Horse, MiniMax H3, Wan, Suno
36
36
  and Fish Audio. 97 optional tools across 17 services expose advanced editing,
37
37
  voice/persona management, face transformation, search and task retrieval.
38
- See [capability and tool reference](docs/capabilities.md) and the
39
- [official-contract architecture decision](docs/architecture.md).
38
+ See [capability and tool reference](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.10.3/docs/capabilities.md) and the
39
+ [official-contract architecture decision](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.10.3/docs/architecture.md).
40
40
 
41
- [Setup and validation cookbook](docs/cookbook.md) includes environment-key setup,
41
+ [Setup and validation cookbook](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.10.3/docs/cookbook.md) includes environment-key setup,
42
42
  model selection, and optional web search.
43
43
 
44
44
  For a native image after setup:
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { GENERATED_CHAT_MODELS } from "./src/chat/generated-catalog.js";
6
6
  import { ACEDATA_DEFAULT_MODEL_REF, applyAcedataConfig, } from "./src/chat/onboard.js";
7
7
  import { resolveAcedataThinkingProfile, wrapAcedataStream, prepareAcedataRuntimeAuth, } from "./src/chat/runtime.js";
8
8
  import { createAcedataWebSearchProvider } from "./src/search/acedata-search-provider.js";
9
- import { registerServiceTools } from "./src/services/tools.js";
9
+ import { registerServiceTools, resolveServiceKey } from "./src/services/tools.js";
10
10
  import { registerMediaProviders } from "./src/services/media.js";
11
11
  const ACEDATA_MODEL_ID_PREFIX_RE = new RegExp(`^${ACEDATA_PROVIDER_ID}\\/`);
12
12
  // OpenClaw passes the qualified id (e.g. "acedatacloud/claude-haiku-4-5-20251001")
@@ -94,7 +94,7 @@ const plugin = definePluginEntry({
94
94
  source: "static",
95
95
  })),
96
96
  });
97
- api.registerWebSearchProvider(createAcedataWebSearchProvider());
97
+ api.registerWebSearchProvider(createAcedataWebSearchProvider(cfg => resolveServiceKey(api, "google-search", cfg)));
98
98
  registerMediaProviders(api);
99
99
  registerServiceTools(api);
100
100
  },
@@ -23,6 +23,8 @@ export type AcedataSearchResponse = {
23
23
  };
24
24
  export type RunAcedataSearchArgs = {
25
25
  cfg?: OpenClawConfig;
26
+ apiKey?: string;
27
+ signal?: AbortSignal;
26
28
  query: string;
27
29
  type?: AcedataSearchType;
28
30
  country?: string;
@@ -1,7 +1,11 @@
1
1
  import { resolveAcedataSearchApiKey, resolveAcedataSearchBaseUrl, resolveAcedataSearchTimeoutSeconds, } from "./acedata-search-config.js";
2
+ import { cleanResult, readLimited } from "../services/client.js";
2
3
  const SEARCH_PATH = "/serp/google";
3
4
  function buildSearchUrl(baseUrl) {
4
- return `${baseUrl.replace(/\/$/, "")}${SEARCH_PATH}`;
5
+ const url = new URL(`${baseUrl.replace(/\/$/, "")}${SEARCH_PATH}`);
6
+ if (url.protocol !== "https:" || url.username || url.password)
7
+ throw new Error("Search base URL must use HTTPS without embedded credentials.");
8
+ return url.toString();
5
9
  }
6
10
  function asString(value) {
7
11
  return typeof value === "string" && value.trim() ? value : undefined;
@@ -34,7 +38,7 @@ export async function runAcedataSearch(args) {
34
38
  if (!query.trim()) {
35
39
  throw new Error("Ace Data Cloud search query is required");
36
40
  }
37
- const apiKey = resolveAcedataSearchApiKey(cfg);
41
+ const apiKey = resolveAcedataSearchApiKey(cfg) ?? args.apiKey;
38
42
  if (!apiKey) {
39
43
  throw new Error("Ace Data Cloud API key not configured. Set ACEDATA_API_KEY env var or configure plugins.entries.acedatacloud.config.webSearch.apiKey.");
40
44
  }
@@ -63,32 +67,36 @@ export async function runAcedataSearch(args) {
63
67
  Accept: "application/json",
64
68
  },
65
69
  body: JSON.stringify(body),
66
- signal: controller.signal,
70
+ redirect: "error",
71
+ signal: args.signal ? AbortSignal.any([args.signal, controller.signal]) : controller.signal,
67
72
  });
68
73
  }
69
74
  catch (cause) {
75
+ clearTimeout(timer);
70
76
  if (cause?.name === "AbortError") {
71
77
  throw new Error(`Ace Data Cloud search timed out after ${timeoutSeconds}s`);
72
78
  }
73
- throw new Error(`Ace Data Cloud search request failed: ${cause.message}`, { cause });
74
- }
75
- finally {
76
- clearTimeout(timer);
79
+ args.signal?.throwIfAborted();
80
+ throw new Error("Ace Data Cloud search request failed.");
77
81
  }
78
82
  if (!response.ok) {
79
- const text = await response.text().catch(() => "");
80
- throw new Error(`Ace Data Cloud search API returned HTTP ${response.status}${text ? `: ${text.slice(0, 500)}` : ""}`);
83
+ clearTimeout(timer);
84
+ await response.body?.cancel();
85
+ throw new Error(`Ace Data Cloud search API returned HTTP ${response.status}`);
81
86
  }
82
87
  let payload;
83
88
  try {
84
- payload = await response.json();
89
+ payload = cleanResult(JSON.parse((await readLimited(response, 8 * 1024 * 1024)).toString("utf8")));
85
90
  }
86
- catch (cause) {
87
- throw new Error("Ace Data Cloud search returned malformed JSON", { cause });
91
+ catch {
92
+ throw new Error("Ace Data Cloud search returned malformed or oversized JSON");
93
+ }
94
+ finally {
95
+ clearTimeout(timer);
88
96
  }
89
97
  const root = (payload && typeof payload === "object" ? payload : {});
90
98
  const data = (root.data && typeof root.data === "object" ? root.data : root) ?? {};
91
- const organic = normalizeOrganicResults(data.organic_results ?? data.results ?? data.items);
99
+ const organic = normalizeOrganicResults(data.organic ?? data.organic_results ?? data.results ?? data.items ?? data.images ?? data.news ?? data.videos ?? data.places);
92
100
  const result = {
93
101
  type,
94
102
  query,
@@ -1,2 +1,3 @@
1
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
1
2
  import type { WebSearchProviderPlugin } from "./acedata-search-shared.js";
2
- export declare function createAcedataWebSearchProvider(): WebSearchProviderPlugin;
3
+ export declare function createAcedataWebSearchProvider(resolveSharedKey?: (cfg?: OpenClawConfig) => Promise<string>): WebSearchProviderPlugin;
@@ -1,4 +1,5 @@
1
1
  import { readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
2
+ import { resolveAcedataSearchApiKey } from "./acedata-search-config.js";
2
3
  import { runAcedataSearch } from "./acedata-search-client.js";
3
4
  import { buildAcedataSearchProviderBase } from "./acedata-search-shared.js";
4
5
  const SUPPORTED_TYPES = ["search", "images", "news", "videos", "maps", "places"];
@@ -42,13 +43,13 @@ function normalizeSearchType(value) {
42
43
  return undefined;
43
44
  return SUPPORTED_TYPES.includes(value) ? value : undefined;
44
45
  }
45
- export function createAcedataWebSearchProvider() {
46
+ export function createAcedataWebSearchProvider(resolveSharedKey) {
46
47
  return {
47
48
  ...buildAcedataSearchProviderBase(),
48
49
  createTool: (ctx) => ({
49
50
  description: "Search the web using Ace Data Cloud's Google SERP API. Returns structured organic results plus optional knowledge graph and answer box. Supports image/news/video/maps verticals.",
50
51
  parameters: AcedataSearchSchema,
51
- execute: async (args) => {
52
+ execute: async (args, execution) => {
52
53
  const query = typeof args.query === "string" ? args.query : "";
53
54
  const count = readPositiveIntegerParam(args, "count", {
54
55
  message: "count must be an integer from 1 to 100",
@@ -59,6 +60,8 @@ export function createAcedataWebSearchProvider() {
59
60
  });
60
61
  return await runAcedataSearch({
61
62
  cfg: ctx.config,
63
+ apiKey: resolveAcedataSearchApiKey(ctx.config) ?? await resolveSharedKey?.(ctx.config),
64
+ signal: execution?.signal,
62
65
  query,
63
66
  type: normalizeSearchType(args.type) ?? "search",
64
67
  country: typeof args.country === "string" ? args.country : undefined,
package/docs/cookbook.md CHANGED
@@ -1,15 +1,16 @@
1
1
  # Configure Ace Data Cloud in OpenClaw
2
2
 
3
- Download the archive from the [GitHub release](https://github.com/AceDataCloud/OpenClawProvider/releases/tag/v2026.10.1),
4
- install it, and use the onboarding prompt for the API key:
3
+ Install the package from [ClawHub](https://clawhub.ai/acedatacloud/plugins/openclaw-provider)
4
+ and use the onboarding prompt for the API key:
5
5
 
6
6
  ```sh
7
- openclaw plugins install npm-pack:./acedatacloud-openclaw-provider-2026.10.1.tgz
7
+ openclaw plugins install clawhub:@acedatacloud/openclaw-provider@2026.10.3
8
8
  openclaw onboard --auth-choice acedatacloud-api-key
9
9
  ```
10
10
 
11
- The package is vendor maintained. A GitHub release does not imply npm publication,
12
- OpenClaw bundling or ClawHub approval. Review the host's install prompts.
11
+ The package is vendor maintained. Review the host's install prompts and the
12
+ listing's security audit. Official publisher status and default bundling are
13
+ separate OpenClaw decisions.
13
14
 
14
15
  For environment-based authentication, set `ACEDATA_API_KEY` or
15
16
  `ACEDATACLOUD_API_KEY` in the environment where OpenClaw runs. Non-interactive
@@ -42,8 +43,9 @@ reasoning controls; account access and balance still apply.
42
43
 
43
44
  ## Optional web search
44
45
 
45
- An appropriately scoped search API key is required. The plugin reuses the named
46
- environment variables, or reads an explicit plugin-scoped search key:
46
+ Your API key must allow Google Search. The plugin uses the shared Ace Data Cloud
47
+ auth profile or the named environment variables by default. An explicit
48
+ plugin-scoped search key can override it:
47
49
 
48
50
  ```json
49
51
  {
@@ -64,8 +66,8 @@ openclaw infer web search --provider acedatacloud --query "OpenClaw" --limit 2 -
64
66
 
65
67
  Search uses `/serp/google`, separately from the model base URL. If required, the
66
68
  plugin's `webSearch.baseUrl` overrides the search service origin; only set it to a
67
- service you trust with that search key. The model authentication profile is not
68
- automatically the search credential.
69
+ service you trust with that search key. The shared model authentication profile is used when no search-specific key
70
+ is configured; it must include search access.
69
71
 
70
72
  ## Publishing and verification
71
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/openclaw-provider",
3
- "version": "2026.10.1",
3
+ "version": "2026.10.3",
4
4
  "description": "Ace Data Cloud models, image, video, music, speech, search and creative tools for OpenClaw.",
5
5
  "keywords": [
6
6
  "openclaw",