@acedatacloud/openclaw-provider 2026.5.33 → 2026.10.1

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.
Files changed (78) hide show
  1. package/README.md +72 -59
  2. package/assets/icon.png +0 -0
  3. package/dist/index.d.ts +4 -10
  4. package/dist/index.js +34 -20
  5. package/dist/src/chat/generated-catalog.d.ts +9 -7
  6. package/dist/src/chat/generated-catalog.js +3893 -65
  7. package/dist/src/chat/onboard.d.ts +1 -1
  8. package/dist/src/chat/onboard.js +13 -2
  9. package/dist/src/chat/provider-catalog.d.ts +4 -2
  10. package/dist/src/chat/provider-catalog.js +2 -51
  11. package/dist/src/chat/runtime.d.ts +4 -0
  12. package/dist/src/chat/runtime.js +77 -0
  13. package/dist/src/constants.d.ts +1 -1
  14. package/dist/src/constants.js +1 -1
  15. package/dist/src/search/acedata-search-config.js +6 -4
  16. package/dist/src/search/acedata-search-provider.d.ts +1 -1
  17. package/dist/src/search/acedata-search-shared.d.ts +2 -1
  18. package/dist/src/search/acedata-search-shared.js +37 -6
  19. package/dist/src/services/catalog.d.ts +46 -0
  20. package/dist/src/services/catalog.js +24 -0
  21. package/dist/src/services/client.d.ts +36 -0
  22. package/dist/src/services/client.js +315 -0
  23. package/dist/src/services/contracts/face.json +16 -0
  24. package/dist/src/services/contracts/fish-audio.json +15 -0
  25. package/dist/src/services/contracts/flux.json +13 -0
  26. package/dist/src/services/contracts/google-search.json +9 -0
  27. package/dist/src/services/contracts/gpt-image.json +13 -0
  28. package/dist/src/services/contracts/grok.json +12 -0
  29. package/dist/src/services/contracts/happyhorse.json +11 -0
  30. package/dist/src/services/contracts/kling.json +20 -0
  31. package/dist/src/services/contracts/midjourney.json +17 -0
  32. package/dist/src/services/contracts/minimax.json +13 -0
  33. package/dist/src/services/contracts/nano-banana.json +12 -0
  34. package/dist/src/services/contracts/qwen-image.json +11 -0
  35. package/dist/src/services/contracts/seedance.json +11 -0
  36. package/dist/src/services/contracts/seedream.json +13 -0
  37. package/dist/src/services/contracts/suno.json +27 -0
  38. package/dist/src/services/contracts/veo.json +15 -0
  39. package/dist/src/services/contracts/wan.json +12 -0
  40. package/dist/src/services/media.d.ts +25 -0
  41. package/dist/src/services/media.js +350 -0
  42. package/dist/src/services/parameters.d.ts +6 -0
  43. package/dist/src/services/parameters.js +165 -0
  44. package/dist/src/services/tools.d.ts +6 -0
  45. package/dist/src/services/tools.js +59 -0
  46. package/docs/architecture.md +58 -0
  47. package/docs/capabilities.md +75 -0
  48. package/docs/cookbook.md +77 -0
  49. package/docs/model-catalog.md +126 -0
  50. package/openclaw.plugin.json +5680 -9
  51. package/package.json +31 -23
  52. package/skills/acedata-face/SKILL.md +14 -0
  53. package/skills/acedata-fish-audio/SKILL.md +20 -0
  54. package/skills/acedata-flux/SKILL.md +18 -0
  55. package/skills/acedata-google-search/SKILL.md +14 -0
  56. package/skills/acedata-gpt-image/SKILL.md +18 -0
  57. package/skills/acedata-grok/SKILL.md +17 -0
  58. package/skills/acedata-happyhorse/SKILL.md +16 -0
  59. package/skills/acedata-kling/SKILL.md +25 -0
  60. package/skills/acedata-midjourney/SKILL.md +22 -0
  61. package/skills/acedata-minimax/SKILL.md +18 -0
  62. package/skills/acedata-nano-banana/SKILL.md +17 -0
  63. package/skills/acedata-qwen-image/SKILL.md +16 -0
  64. package/skills/acedata-seedance/SKILL.md +16 -0
  65. package/skills/acedata-seedream/SKILL.md +18 -0
  66. package/skills/acedata-suno/SKILL.md +32 -0
  67. package/skills/acedata-veo/SKILL.md +20 -0
  68. package/skills/acedata-wan/SKILL.md +17 -0
  69. package/index.ts +0 -110
  70. package/src/chat/generated-catalog.ts +0 -77
  71. package/src/chat/model-overrides.json +0 -93
  72. package/src/chat/onboard.ts +0 -33
  73. package/src/chat/provider-catalog.ts +0 -73
  74. package/src/constants.ts +0 -3
  75. package/src/search/acedata-search-client.ts +0 -160
  76. package/src/search/acedata-search-config.ts +0 -76
  77. package/src/search/acedata-search-provider.ts +0 -80
  78. package/src/search/acedata-search-shared.ts +0 -29
package/README.md CHANGED
@@ -1,76 +1,89 @@
1
- # `@acedatacloud/openclaw-provider`
1
+ # Ace Data Cloud provider for OpenClaw
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@acedatacloud/openclaw-provider?logo=npm)](https://www.npmjs.com/package/@acedatacloud/openclaw-provider)
4
- [![CI](https://github.com/AceDataCloud/OpenClawProvider/actions/workflows/ci.yml/badge.svg)](https://github.com/AceDataCloud/OpenClawProvider/actions/workflows/ci.yml)
5
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
+ An Ace Data Cloud maintained provider for LLMs, images, video, music, speech,
4
+ Google web search and creative tools.
5
+ Source: [AceDataCloud/OpenClawProvider](https://github.com/AceDataCloud/OpenClawProvider).
6
6
 
7
- An [OpenClaw](https://github.com/openclaw/openclaw) provider plugin that surfaces the entire **Ace Data Cloud** AI stack — **chat, image generation, video generation, music generation, and web search** — through a single OpenAI-compatible endpoint.
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.
8
10
 
9
- > 50+ LLMs (Claude, GPT, Gemini, Grok, DeepSeek, Kimi, GLM, Qwen, …) **+** Midjourney, Flux, Seedream, NanoBanana, gpt-image-2 **+** Sora, Veo, Kling, Luma, Hailuo, Wan, Seedance, Pixverse **+** Suno, Producer **+** Google Web Search. One plugin, one API key.
11
+ ## Setup
10
12
 
11
- ## Install
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:
12
16
 
13
- ```bash
14
- openclaw plugins install npm:@acedatacloud/openclaw-provider
17
+ ```sh
18
+ openclaw plugins install npm-pack:./acedatacloud-openclaw-provider-2026.10.1.tgz
19
+ openclaw onboard --auth-choice acedatacloud-api-key
15
20
  ```
16
21
 
17
- Then run onboarding:
18
-
19
- ```bash
20
- openclaw onboard --auth-choice acedatacloud-api-key --acedata-api-key <YOUR_KEY>
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.
25
+ Get an API-consumer key from [Ace Data Cloud](https://platform.acedata.cloud).
26
+ The default model is `acedatacloud/gpt-4.1-mini`.
27
+
28
+ The chat catalog covers 90 public models across OpenAI, Claude, Gemini, Grok,
29
+ DeepSeek, Kimi, and GLM. Each model uses its own supported Chat Completions,
30
+ Responses, or Messages route, input capabilities, reasoning controls, and prices.
31
+ See [model support and cost estimates](docs/model-catalog.md). No automatic
32
+ fallback changes the chosen model.
33
+
34
+ Native media providers cover Nano Banana, GPT Image, Seedream, Flux, Qwen Image,
35
+ Midjourney, Seedance, Veo, Kling, Grok Video, Happy Horse, MiniMax H3, Wan, Suno
36
+ and Fish Audio. 97 optional tools across 17 services expose advanced editing,
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).
40
+
41
+ [Setup and validation cookbook](docs/cookbook.md) includes environment-key setup,
42
+ model selection, and optional web search.
43
+
44
+ For a native image after setup:
45
+
46
+ ```sh
47
+ openclaw infer image generate --model acedatacloud-nano-banana/nano-banana-2-lite \
48
+ --prompt "A blue circle on a white background" --count 1 --output image.jpg
21
49
  ```
22
50
 
23
- Get a key at [`platform.acedata.cloud/console/applications`](https://platform.acedata.cloud/console/applications) — first credentials include free credits.
24
-
25
- ## What you get in v2026.5.33
26
-
27
- | Capability | Status | Notes |
28
- |---|---|---|
29
- | **Chat** | ✅ shipping | 62 curated models (Claude opus/sonnet/haiku, GPT-4.1/4o/5.x, o-series, Gemini 3.x, Grok 4, DeepSeek V3/R1/V4, Kimi K2, GLM 5) — plus any model id you pass through (e.g. `acedatacloud/gpt-5.4-mini`) via `resolveDynamicModel` |
30
- | **Web Search** | ✅ shipping | Google SERP — supports `search` / `images` / `news` / `videos` / `maps` / `places` verticals |
31
- | **Image generation** | 🚧 follow-up PR | Midjourney, Flux dev/pro/kontext, Seedream 4 / 4.5, NanoBanana / NanoBanana Pro, `gpt-image-2` — currently exposed via chat-style passthrough; native `ImageGenerationProvider` is planned |
32
- | **Video generation** | 🚧 follow-up PR | Sora, Veo 3 / 3.1-fast, Kling 2.1, Luma Ray 2, Hailuo 02, Wan 2.5, Seedance 1 Pro, Pixverse 4.5 — needs an async task-polling adapter |
33
- | **Music generation** | 🚧 follow-up PR | Suno v5, Producer — needs an async task-polling adapter |
34
-
35
- ## Status
51
+ This is a paid generation. Use the task retrieval tools to recover an existing
52
+ result after a timeout instead of generating it again.
36
53
 
37
- **v2026.5.33.** Chat (62 models, dynamic-id passthrough) and web search are shipping and validated end-to-end on `openclaw >= 2026.4.2`. v2026.5.33 fixes a dynamic-model resolution bug where the qualified `acedatacloud/<model>` id leaked into the request payload — the bare upstream model id is now sent so dynamic-catalog passthrough works for every model the API exposes. Image / video / music modality providers are tracked as follow-ups — see the [PR board](https://github.com/AceDataCloud/OpenClawProvider/pulls) and the [plan](https://github.com/AceDataCloud/Index/blob/main/.plans/OPENCLAW-PROVIDER.md).
54
+ ## Credentials and network access
38
55
 
39
- Full setup guide: **[docs/cookbook.md](docs/cookbook.md)**.
40
-
41
- ## Configuration
42
-
43
- Set either env var (OpenClaw reads both):
44
-
45
- ```bash
46
- export ACEDATA_API_KEY="..."
47
- # or
48
- export ACEDATACLOUD_API_KEY="..."
49
- ```
50
-
51
- Or pass `--acedata-api-key <key>` on the CLI.
52
-
53
- ## Billing
54
-
55
- Billing is computed on the Ace Data Cloud platform side (per-request credits). To avoid double-estimation, this plugin reports `cost: 0` in OpenClaw's model catalog — see your real usage at [`platform.acedata.cloud/console/usages`](https://platform.acedata.cloud/console/usages).
56
+ Chat sends the selected model's prompts and tool messages to its documented
57
+ endpoint under `https://api.acedata.cloud` with the user's API key. Native Claude
58
+ Messages also receives an explicit Bearer header.
59
+ Optional search sends the query to `https://api.acedata.cloud/serp/google`.
60
+ Media generation uses the corresponding service endpoint on that same host.
61
+ Media downloads use the host's SSRF guard without forwarding your API key.
62
+ Billable generation and tool operations consume Ace Credits; model, count,
63
+ resolution and duration affect cost. Optional tools follow normal OpenClaw
64
+ policy and do not add a separate payment approval dialog.
65
+ The plugin has no shell commands, filesystem tools, or background service.
66
+ Use a service-scoped key where possible; cross-service use needs appropriate access.
67
+ Never send API keys to maintainers or attach them to issue reports.
56
68
 
57
69
  ## Development
58
70
 
59
- ```bash
60
- # Clone next to a checkout of openclaw/openclaw (we use its workspace SDK)
61
- git clone https://github.com/openclaw/openclaw.git ../openclaw
62
- git clone https://github.com/AceDataCloud/OpenClawProvider.git
63
- cd OpenClawProvider
64
- pnpm install # or npm install
65
- pnpm test # vitest unit
66
- pnpm build # tsc -> dist/
67
- pnpm test:live # requires ACEDATA_API_KEY in env, real api.acedata.cloud calls
71
+ Use Node 24.16+ and pnpm 9.15.4. The published OpenClaw SDK is pinned as a development
72
+ dependency, so no sibling source checkout is needed.
73
+
74
+ ```sh
75
+ pnpm install --frozen-lockfile
76
+ pnpm sync-catalog:check
77
+ pnpm sync-services:check
78
+ pnpm typecheck
79
+ pnpm test
80
+ pnpm build
81
+ pnpm pack
82
+ clawhub package validate .
83
+ clawhub package publish . --owner acedatacloud --dry-run
68
84
  ```
69
85
 
70
- ## Contributing
71
-
72
- PRs welcome. Please open an issue first for non-trivial changes. See [CONTRIBUTING](.github/CONTRIBUTING.md) (TBD).
73
-
74
- ## License
86
+ The package uses built JavaScript entrypoints. Runtime APIs come from the installed
87
+ OpenClaw host. Report problems through [GitHub issues](https://github.com/AceDataCloud/OpenClawProvider/issues).
75
88
 
76
- [MIT](LICENSE) © Ace Data Cloud
89
+ MIT License. Maintained by Ace Data Cloud, dev@acedata.cloud.
Binary file
package/dist/index.d.ts CHANGED
@@ -1,12 +1,6 @@
1
- import type { ProviderResolveDynamicModelContext, ProviderRuntimeModel } from "openclaw/plugin-sdk/plugin-entry";
1
+ import type { ProviderResolveDynamicModelContext, ProviderRuntimeModel, OpenClawPluginDefinition } from "openclaw/plugin-sdk/plugin-entry";
2
2
  declare function stripAcedataProviderPrefix(modelId: string): string;
3
- declare function resolveDynamicChatModel(ctx: ProviderResolveDynamicModelContext): ProviderRuntimeModel;
4
- declare const _default: {
5
- id: string;
6
- name: string;
7
- description: string;
8
- configSchema: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema;
9
- register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
10
- } & Pick<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition, "kind" | "reload" | "nodeHostCommands" | "securityAuditCollectors">;
11
- export default _default;
3
+ declare function resolveDynamicChatModel(ctx: ProviderResolveDynamicModelContext): ProviderRuntimeModel | undefined;
4
+ declare const plugin: OpenClawPluginDefinition;
5
+ export default plugin;
12
6
  export { resolveDynamicChatModel, stripAcedataProviderPrefix };
package/dist/index.js CHANGED
@@ -1,10 +1,13 @@
1
1
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
2
- import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
3
- import { ACEDATA_BASE_URL, ACEDATA_PROVIDER_ID, } from "./src/constants.js";
4
- import { buildAcedataChatProvider, isAcedataReasoningModel, } from "./src/chat/provider-catalog.js";
2
+ import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth";
3
+ import { ACEDATA_PROVIDER_ID } from "./src/constants.js";
4
+ import { buildAcedataChatProvider } from "./src/chat/provider-catalog.js";
5
+ import { GENERATED_CHAT_MODELS } from "./src/chat/generated-catalog.js";
5
6
  import { ACEDATA_DEFAULT_MODEL_REF, applyAcedataConfig, } from "./src/chat/onboard.js";
7
+ import { resolveAcedataThinkingProfile, wrapAcedataStream, prepareAcedataRuntimeAuth, } from "./src/chat/runtime.js";
6
8
  import { createAcedataWebSearchProvider } from "./src/search/acedata-search-provider.js";
7
- const ZERO_COST = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
9
+ import { registerServiceTools } from "./src/services/tools.js";
10
+ import { registerMediaProviders } from "./src/services/media.js";
8
11
  const ACEDATA_MODEL_ID_PREFIX_RE = new RegExp(`^${ACEDATA_PROVIDER_ID}\\/`);
9
12
  // OpenClaw passes the qualified id (e.g. "acedatacloud/claude-haiku-4-5-20251001")
10
13
  // when a model is not in the static catalog. The api.acedata.cloud upstream
@@ -14,28 +17,21 @@ function stripAcedataProviderPrefix(modelId) {
14
17
  }
15
18
  function resolveDynamicChatModel(ctx) {
16
19
  const bareId = stripAcedataProviderPrefix(ctx.modelId);
17
- return {
18
- id: bareId,
19
- name: bareId,
20
- api: "openai-completions",
21
- provider: ACEDATA_PROVIDER_ID,
22
- baseUrl: ACEDATA_BASE_URL,
23
- reasoning: isAcedataReasoningModel(bareId),
24
- input: ["text", "image"],
25
- cost: ZERO_COST,
26
- contextWindow: 128_000,
27
- maxTokens: 8_192,
28
- };
20
+ const known = GENERATED_CHAT_MODELS.find((model) => model.id === bareId);
21
+ if (!known)
22
+ return undefined;
23
+ const { reasoningEfforts, thinkingToggle, ...model } = known;
24
+ return { ...model, provider: ACEDATA_PROVIDER_ID };
29
25
  }
30
- export default definePluginEntry({
26
+ const plugin = definePluginEntry({
31
27
  id: ACEDATA_PROVIDER_ID,
32
28
  name: "Ace Data Cloud Provider",
33
- description: "Bundled Ace Data Cloud provider plugin (chat, image, video, music, search)",
29
+ description: "Ace Data Cloud models, media generation, speech, search and creative tools",
34
30
  register(api) {
35
31
  api.registerProvider({
36
32
  id: ACEDATA_PROVIDER_ID,
37
33
  label: "Ace Data Cloud",
38
- docsPath: "/providers/acedatacloud",
34
+ docsPath: "https://github.com/AceDataCloud/OpenClawProvider/blob/main/docs/cookbook.md",
39
35
  envVars: ["ACEDATA_API_KEY", "ACEDATACLOUD_API_KEY"],
40
36
  auth: [
41
37
  createProviderApiKeyAuthMethod({
@@ -43,7 +39,7 @@ export default definePluginEntry({
43
39
  methodId: "api-key",
44
40
  label: "Ace Data Cloud API key",
45
41
  hint: "API key from https://platform.acedata.cloud/console/applications",
46
- optionKey: "acedatacloudApiKey",
42
+ optionKey: "acedataApiKey",
47
43
  flagName: "--acedata-api-key",
48
44
  envVar: "ACEDATA_API_KEY",
49
45
  promptMessage: "Enter your Ace Data Cloud API key",
@@ -82,8 +78,26 @@ export default definePluginEntry({
82
78
  }),
83
79
  },
84
80
  resolveDynamicModel: (ctx) => resolveDynamicChatModel(ctx),
81
+ resolveThinkingProfile: resolveAcedataThinkingProfile,
82
+ wrapStreamFn: wrapAcedataStream,
83
+ wrapSimpleCompletionStreamFn: wrapAcedataStream,
84
+ prepareRuntimeAuth: prepareAcedataRuntimeAuth,
85
+ });
86
+ api.registerModelCatalogProvider({
87
+ provider: ACEDATA_PROVIDER_ID,
88
+ kinds: ["text"],
89
+ staticCatalog: () => GENERATED_CHAT_MODELS.map((model) => ({
90
+ kind: "text",
91
+ provider: ACEDATA_PROVIDER_ID,
92
+ model: model.id,
93
+ label: model.name,
94
+ source: "static",
95
+ })),
85
96
  });
86
97
  api.registerWebSearchProvider(createAcedataWebSearchProvider());
98
+ registerMediaProviders(api);
99
+ registerServiceTools(api);
87
100
  },
88
101
  });
102
+ export default plugin;
89
103
  export { resolveDynamicChatModel, stripAcedataProviderPrefix };
@@ -1,9 +1,11 @@
1
- export type GeneratedCatalogEntry = {
2
- id: string;
3
- name: string;
4
- reasoning: boolean;
5
- vision: boolean;
6
- contextWindow: number;
7
- maxTokens: number;
1
+ import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
2
+ type Provider = NonNullable<NonNullable<OpenClawConfig["models"]>["providers"]>[string];
3
+ export type GeneratedCatalogEntry = Omit<Provider["models"][number], "api" | "input"> & {
4
+ api: "openai-completions" | "openai-responses" | "anthropic-messages";
5
+ baseUrl: string;
6
+ input: Array<"text" | "image">;
7
+ reasoningEfforts: string[];
8
+ thinkingToggle: boolean;
8
9
  };
9
10
  export declare const GENERATED_CHAT_MODELS: readonly GeneratedCatalogEntry[];
11
+ export {};