@acedatacloud/openclaw-provider 2026.10.12 → 2026.11.13
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 +10 -6
- package/dist/src/chat/generated-catalog.js +35 -0
- package/dist/src/service-plugins/definitions.d.ts +52 -0
- package/dist/src/service-plugins/definitions.js +7 -0
- package/dist/src/service-plugins/entry.d.ts +18 -0
- package/dist/src/service-plugins/entry.js +61 -0
- package/dist/src/service-plugins/gpt-image.d.ts +14 -0
- package/dist/src/service-plugins/gpt-image.js +3 -0
- package/dist/src/service-plugins/happyhorse.d.ts +14 -0
- package/dist/src/service-plugins/happyhorse.js +3 -0
- package/dist/src/service-plugins/nano-banana.d.ts +14 -0
- package/dist/src/service-plugins/nano-banana.js +3 -0
- package/dist/src/service-plugins/seedance.d.ts +14 -0
- package/dist/src/service-plugins/seedance.js +3 -0
- package/dist/src/service-plugins/suno.d.ts +14 -0
- package/dist/src/service-plugins/suno.js +3 -0
- package/dist/src/services/media.d.ts +9 -1
- package/dist/src/services/media.js +84 -71
- package/dist/src/services/tools.d.ts +6 -1
- package/dist/src/services/tools.js +5 -5
- package/docs/architecture.md +11 -3
- package/docs/capabilities.md +1 -1
- package/docs/cookbook.md +27 -3
- package/docs/model-catalog.md +10 -3
- package/openclaw.plugin.json +33 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -33,26 +33,26 @@ openclaw onboard --auth-choice acedatacloud-api-key
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Review OpenClaw's source/capability prompts before accepting installation. To pin
|
|
36
|
-
an exact release, append `@2026.
|
|
36
|
+
an exact release, append `@2026.11.13` to the ClawHub package spec. The same package
|
|
37
37
|
is distributed on [npm](https://www.npmjs.com/package/@acedatacloud/openclaw-provider)
|
|
38
38
|
and as a `.tgz` on [GitHub Releases](https://github.com/AceDataCloud/OpenClawProvider/releases).
|
|
39
39
|
Follow the [API key steps above](#get-your-ace-data-cloud-api-key) before onboarding.
|
|
40
40
|
The default model is `acedatacloud/gpt-4.1-mini`.
|
|
41
41
|
|
|
42
|
-
The chat catalog covers
|
|
42
|
+
The chat catalog covers 91 public models across OpenAI, Claude, Gemini, Grok,
|
|
43
43
|
DeepSeek, Kimi, and GLM. Each model uses its own supported Chat Completions,
|
|
44
44
|
Responses, or Messages route, input capabilities, reasoning controls, and prices.
|
|
45
|
-
See [model support and cost estimates](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.
|
|
45
|
+
See [model support and cost estimates](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.11.13/docs/model-catalog.md). No automatic
|
|
46
46
|
fallback changes the chosen model.
|
|
47
47
|
|
|
48
48
|
Native media providers cover Nano Banana, GPT Image, Seedream, Flux, Qwen Image,
|
|
49
49
|
Midjourney, Seedance, Veo, Kling, Grok Video, Happy Horse, MiniMax H3, Wan, Suno
|
|
50
50
|
and Fish Audio. 97 optional tools across 17 services expose advanced editing,
|
|
51
51
|
voice/persona management, face transformation, search and task retrieval.
|
|
52
|
-
See [capability and tool reference](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.
|
|
53
|
-
[official-contract architecture decision](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.
|
|
52
|
+
See [capability and tool reference](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.11.13/docs/capabilities.md) and the
|
|
53
|
+
[official-contract architecture decision](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.11.13/docs/architecture.md).
|
|
54
54
|
|
|
55
|
-
[Setup and validation cookbook](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.
|
|
55
|
+
[Setup and validation cookbook](https://github.com/AceDataCloud/OpenClawProvider/blob/v2026.11.13/docs/cookbook.md) includes environment-key setup,
|
|
56
56
|
model selection, and optional web search.
|
|
57
57
|
|
|
58
58
|
For a native image after setup:
|
|
@@ -101,3 +101,7 @@ The package uses built JavaScript entrypoints. Runtime APIs come from the instal
|
|
|
101
101
|
OpenClaw host. Report problems through [GitHub issues](https://github.com/AceDataCloud/OpenClawProvider/issues).
|
|
102
102
|
|
|
103
103
|
MIT License. Maintained by Ace Data Cloud, dev@acedata.cloud.
|
|
104
|
+
|
|
105
|
+
## Independent service entry points
|
|
106
|
+
|
|
107
|
+
Dedicated packages under [service-plugins](service-plugins) expose **Suno by Ace Data Cloud**, **Seedance by Ace Data Cloud**, **HappyHorse by Ace Data Cloud**, **GPT Image by Ace Data Cloud**, and **Nano Banana by Ace Data Cloud**. They share this source but register only their service media provider and tools, use separate keys, and can coexist with the collection. Publication is verified per package and version; consult each ClawHub listing rather than inferring availability from this source. Each README has the exact future package ID, API token steps, native auth choice and same-task result workflow.
|
|
@@ -295,6 +295,41 @@ export const GENERATED_CHAT_MODELS = [
|
|
|
295
295
|
"off": "low"
|
|
296
296
|
}
|
|
297
297
|
},
|
|
298
|
+
{
|
|
299
|
+
"id": "claude-fable-5-2",
|
|
300
|
+
"name": "Claude Fable 5.2",
|
|
301
|
+
"api": "anthropic-messages",
|
|
302
|
+
"baseUrl": "https://api.acedata.cloud",
|
|
303
|
+
"reasoning": true,
|
|
304
|
+
"input": [
|
|
305
|
+
"text",
|
|
306
|
+
"image"
|
|
307
|
+
],
|
|
308
|
+
"contextWindow": 1000000,
|
|
309
|
+
"maxTokens": 128000,
|
|
310
|
+
"cost": {
|
|
311
|
+
"input": 5.886925799999999,
|
|
312
|
+
"output": 29.434628999999997,
|
|
313
|
+
"cacheRead": 0.147173075,
|
|
314
|
+
"cacheWrite": 7.358657249999999
|
|
315
|
+
},
|
|
316
|
+
"compat": {
|
|
317
|
+
"supportsEagerToolInputStreaming": false,
|
|
318
|
+
"supportsLongCacheRetention": false
|
|
319
|
+
},
|
|
320
|
+
"reasoningEfforts": [
|
|
321
|
+
"high"
|
|
322
|
+
],
|
|
323
|
+
"thinkingToggle": false,
|
|
324
|
+
"thinkingLevelMap": {
|
|
325
|
+
"low": "high",
|
|
326
|
+
"medium": "high",
|
|
327
|
+
"high": "high",
|
|
328
|
+
"xhigh": "high",
|
|
329
|
+
"max": "high",
|
|
330
|
+
"off": "high"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
298
333
|
{
|
|
299
334
|
"id": "claude-haiku-4-5-20251001",
|
|
300
335
|
"name": "Claude Haiku 4.5",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const SERVICE_PLUGINS: readonly [{
|
|
2
|
+
readonly service: "suno";
|
|
3
|
+
readonly label: "Suno";
|
|
4
|
+
readonly id: "ace-suno";
|
|
5
|
+
readonly packageName: "@acedatacloud/suno-openclaw";
|
|
6
|
+
readonly envVar: "ACEDATA_SUNO_API_KEY";
|
|
7
|
+
readonly kind: "music";
|
|
8
|
+
readonly model: "chirp-v6";
|
|
9
|
+
readonly action: "suno_generate_audios";
|
|
10
|
+
readonly searchTerms: readonly ["suno", "music", "lyrics"];
|
|
11
|
+
}, {
|
|
12
|
+
readonly service: "seedance";
|
|
13
|
+
readonly label: "Seedance";
|
|
14
|
+
readonly id: "ace-seedance";
|
|
15
|
+
readonly packageName: "@acedatacloud/seedance-openclaw";
|
|
16
|
+
readonly envVar: "ACEDATA_SEEDANCE_API_KEY";
|
|
17
|
+
readonly kind: "video";
|
|
18
|
+
readonly model: "doubao-seedance-2-0-mini-260615";
|
|
19
|
+
readonly action: "seedance_generate_video";
|
|
20
|
+
readonly searchTerms: readonly ["seedance", "video", "text-to-video"];
|
|
21
|
+
}, {
|
|
22
|
+
readonly service: "happyhorse";
|
|
23
|
+
readonly label: "HappyHorse";
|
|
24
|
+
readonly id: "ace-happyhorse";
|
|
25
|
+
readonly packageName: "@acedatacloud/happyhorse-openclaw";
|
|
26
|
+
readonly envVar: "ACEDATA_HAPPYHORSE_API_KEY";
|
|
27
|
+
readonly kind: "video";
|
|
28
|
+
readonly model: "happyhorse-1.0-t2v";
|
|
29
|
+
readonly action: "happyhorse_generate_video";
|
|
30
|
+
readonly searchTerms: readonly ["happyhorse", "happy horse", "video"];
|
|
31
|
+
}, {
|
|
32
|
+
readonly service: "gpt-image";
|
|
33
|
+
readonly label: "GPT Image";
|
|
34
|
+
readonly id: "ace-gpt-image";
|
|
35
|
+
readonly packageName: "@acedatacloud/gpt-image-openclaw";
|
|
36
|
+
readonly envVar: "ACEDATA_GPT_IMAGE_API_KEY";
|
|
37
|
+
readonly kind: "image";
|
|
38
|
+
readonly model: "gpt-image-2";
|
|
39
|
+
readonly action: "gpt_image_generate_image";
|
|
40
|
+
readonly searchTerms: readonly ["gpt image", "gpt-image", "image editing"];
|
|
41
|
+
}, {
|
|
42
|
+
readonly service: "nano-banana";
|
|
43
|
+
readonly label: "Nano Banana";
|
|
44
|
+
readonly id: "ace-nano-banana";
|
|
45
|
+
readonly packageName: "@acedatacloud/nano-banana-openclaw";
|
|
46
|
+
readonly envVar: "ACEDATA_NANO_BANANA_API_KEY";
|
|
47
|
+
readonly kind: "image";
|
|
48
|
+
readonly model: "nano-banana-2-lite";
|
|
49
|
+
readonly action: "nano_banana_generate_image";
|
|
50
|
+
readonly searchTerms: readonly ["nano banana", "nano-banana", "image editing"];
|
|
51
|
+
}];
|
|
52
|
+
export type ServicePluginDefinition = (typeof SERVICE_PLUGINS)[number];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const SERVICE_PLUGINS = [
|
|
2
|
+
{ service: "suno", label: "Suno", id: "ace-suno", packageName: "@acedatacloud/suno-openclaw", envVar: "ACEDATA_SUNO_API_KEY", kind: "music", model: "chirp-v6", action: "suno_generate_audios", searchTerms: ["suno", "music", "lyrics"] },
|
|
3
|
+
{ service: "seedance", label: "Seedance", id: "ace-seedance", packageName: "@acedatacloud/seedance-openclaw", envVar: "ACEDATA_SEEDANCE_API_KEY", kind: "video", model: "doubao-seedance-2-0-mini-260615", action: "seedance_generate_video", searchTerms: ["seedance", "video", "text-to-video"] },
|
|
4
|
+
{ service: "happyhorse", label: "HappyHorse", id: "ace-happyhorse", packageName: "@acedatacloud/happyhorse-openclaw", envVar: "ACEDATA_HAPPYHORSE_API_KEY", kind: "video", model: "happyhorse-1.0-t2v", action: "happyhorse_generate_video", searchTerms: ["happyhorse", "happy horse", "video"] },
|
|
5
|
+
{ service: "gpt-image", label: "GPT Image", id: "ace-gpt-image", packageName: "@acedatacloud/gpt-image-openclaw", envVar: "ACEDATA_GPT_IMAGE_API_KEY", kind: "image", model: "gpt-image-2", action: "gpt_image_generate_image", searchTerms: ["gpt image", "gpt-image", "image editing"] },
|
|
6
|
+
{ service: "nano-banana", label: "Nano Banana", id: "ace-nano-banana", packageName: "@acedatacloud/nano-banana-openclaw", envVar: "ACEDATA_NANO_BANANA_API_KEY", kind: "image", model: "nano-banana-2-lite", action: "nano_banana_generate_image", searchTerms: ["nano banana", "nano-banana", "image editing"] },
|
|
7
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type OpenClawConfig, type OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
|
+
import type { ServicePluginDefinition } from "./definitions.js";
|
|
3
|
+
export declare function configuredServiceKey(def: ServicePluginDefinition, cfg?: OpenClawConfig): string | undefined;
|
|
4
|
+
export declare function resolveStandaloneKey(def: ServicePluginDefinition, api: OpenClawPluginApi, cfg?: OpenClawConfig): Promise<string>;
|
|
5
|
+
export declare function applyServiceConfig(def: ServicePluginDefinition, cfg: OpenClawConfig): OpenClawConfig;
|
|
6
|
+
export declare function createServicePlugin(def: ServicePluginDefinition): Omit<{
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
kind?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["kind"];
|
|
11
|
+
configSchema?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema | (() => import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema);
|
|
12
|
+
reload?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["reload"];
|
|
13
|
+
nodeHostCommands?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["nodeHostCommands"];
|
|
14
|
+
securityAuditCollectors?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["securityAuditCollectors"];
|
|
15
|
+
register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
|
|
16
|
+
}, "configSchema"> & {
|
|
17
|
+
configSchema: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema;
|
|
18
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
|
+
import { createProviderApiKeyAuthMethod, isProviderApiKeyConfigured } from "openclaw/plugin-sdk/provider-auth";
|
|
3
|
+
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
4
|
+
import { record } from "../services/client.js";
|
|
5
|
+
import { registerMediaProviders } from "../services/media.js";
|
|
6
|
+
import { registerServiceTools } from "../services/tools.js";
|
|
7
|
+
export function configuredServiceKey(def, cfg) {
|
|
8
|
+
const value = record(cfg?.plugins?.entries?.[def.id]?.config).apiKey;
|
|
9
|
+
if (value !== undefined) {
|
|
10
|
+
const key = normalizeResolvedSecretInputString({ value, path: `plugins.entries.${def.id}.config.apiKey` });
|
|
11
|
+
if (!key?.trim())
|
|
12
|
+
throw new Error(`The ${def.label} API key is unresolved or empty.`);
|
|
13
|
+
return key;
|
|
14
|
+
}
|
|
15
|
+
return process.env[def.envVar]?.trim() || undefined;
|
|
16
|
+
}
|
|
17
|
+
export async function resolveStandaloneKey(def, api, cfg) {
|
|
18
|
+
const key = configuredServiceKey(def, cfg);
|
|
19
|
+
if (key)
|
|
20
|
+
return key;
|
|
21
|
+
const auth = await api.runtime.modelAuth.resolveApiKeyForProvider({ provider: def.id, cfg });
|
|
22
|
+
if (!auth.apiKey)
|
|
23
|
+
throw new Error(`Configure ${def.label} by Ace Data Cloud with a key allowing this service.`);
|
|
24
|
+
return auth.apiKey;
|
|
25
|
+
}
|
|
26
|
+
export function applyServiceConfig(def, cfg) {
|
|
27
|
+
if (cfg.agents?.defaults?.mediaModels?.[def.kind])
|
|
28
|
+
return cfg;
|
|
29
|
+
return { ...cfg, agents: { ...cfg.agents, defaults: { ...cfg.agents?.defaults,
|
|
30
|
+
mediaModels: { ...cfg.agents?.defaults?.mediaModels, [def.kind]: { primary: `${def.id}/${def.model}` } },
|
|
31
|
+
} } };
|
|
32
|
+
}
|
|
33
|
+
export function createServicePlugin(def) {
|
|
34
|
+
return definePluginEntry({
|
|
35
|
+
id: def.id, name: `${def.label} by Ace Data Cloud`,
|
|
36
|
+
description: `${def.label} ${def.kind} generation, editing and task retrieval through Ace Data Cloud.`,
|
|
37
|
+
register(api) {
|
|
38
|
+
api.registerProvider({
|
|
39
|
+
id: def.id, label: `${def.label} by Ace Data Cloud`, envVars: [def.envVar],
|
|
40
|
+
docsPath: `https://clawhub.ai/acedatacloud/plugins/${def.service}-openclaw`,
|
|
41
|
+
auth: [createProviderApiKeyAuthMethod({
|
|
42
|
+
providerId: def.id, methodId: "api-key", label: `${def.label} Ace Data Cloud API key`,
|
|
43
|
+
hint: "Get an application API token with access to this service at platform.acedata.cloud",
|
|
44
|
+
optionKey: `${def.service.replace(/-([a-z])/g, (_match, letter) => letter.toUpperCase())}AceApiKey`,
|
|
45
|
+
flagName: `--${def.service}-ace-api-key`, envVar: def.envVar,
|
|
46
|
+
promptMessage: `Enter your Ace Data Cloud API key for ${def.label}`,
|
|
47
|
+
expectedProviders: [def.id], applyConfig: cfg => applyServiceConfig(def, cfg),
|
|
48
|
+
wizard: { choiceId: `${def.id}-api-key`, choiceLabel: `${def.label} by Ace Data Cloud`,
|
|
49
|
+
groupId: def.id, groupLabel: `${def.label} by Ace Data Cloud`, groupHint: `${def.label} ${def.kind}`,
|
|
50
|
+
onboardingScopes: def.kind === "video" ? [] : [`${def.kind}-generation`], },
|
|
51
|
+
})],
|
|
52
|
+
});
|
|
53
|
+
const key = (_service, cfg) => resolveStandaloneKey(def, api, cfg);
|
|
54
|
+
registerMediaProviders(api, { services: [def.service], resolveKey: key,
|
|
55
|
+
isConfigured: (_service, cfg, agentDir) => !!configuredServiceKey(def, cfg) || isProviderApiKeyConfigured({ provider: def.id, agentDir }),
|
|
56
|
+
providerId: () => def.id, label: () => `${def.label} by Ace Data Cloud`, authEnvVars: [def.envVar],
|
|
57
|
+
});
|
|
58
|
+
registerServiceTools(api, { services: [def.service], prefix: "ace_service_", resolveKey: key });
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: Omit<{
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
kind?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["kind"];
|
|
6
|
+
configSchema?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema | (() => import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema);
|
|
7
|
+
reload?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["reload"];
|
|
8
|
+
nodeHostCommands?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["nodeHostCommands"];
|
|
9
|
+
securityAuditCollectors?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["securityAuditCollectors"];
|
|
10
|
+
register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
|
|
11
|
+
}, "configSchema"> & {
|
|
12
|
+
configSchema: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: Omit<{
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
kind?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["kind"];
|
|
6
|
+
configSchema?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema | (() => import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema);
|
|
7
|
+
reload?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["reload"];
|
|
8
|
+
nodeHostCommands?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["nodeHostCommands"];
|
|
9
|
+
securityAuditCollectors?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["securityAuditCollectors"];
|
|
10
|
+
register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
|
|
11
|
+
}, "configSchema"> & {
|
|
12
|
+
configSchema: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: Omit<{
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
kind?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["kind"];
|
|
6
|
+
configSchema?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema | (() => import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema);
|
|
7
|
+
reload?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["reload"];
|
|
8
|
+
nodeHostCommands?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["nodeHostCommands"];
|
|
9
|
+
securityAuditCollectors?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["securityAuditCollectors"];
|
|
10
|
+
register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
|
|
11
|
+
}, "configSchema"> & {
|
|
12
|
+
configSchema: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: Omit<{
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
kind?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["kind"];
|
|
6
|
+
configSchema?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema | (() => import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema);
|
|
7
|
+
reload?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["reload"];
|
|
8
|
+
nodeHostCommands?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["nodeHostCommands"];
|
|
9
|
+
securityAuditCollectors?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["securityAuditCollectors"];
|
|
10
|
+
register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
|
|
11
|
+
}, "configSchema"> & {
|
|
12
|
+
configSchema: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: Omit<{
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
kind?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["kind"];
|
|
6
|
+
configSchema?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema | (() => import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema);
|
|
7
|
+
reload?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["reload"];
|
|
8
|
+
nodeHostCommands?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["nodeHostCommands"];
|
|
9
|
+
securityAuditCollectors?: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["securityAuditCollectors"];
|
|
10
|
+
register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
|
|
11
|
+
}, "configSchema"> & {
|
|
12
|
+
configSchema: import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginConfigSchema;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -21,5 +21,13 @@ export declare function mapVideoRequest(service: string, req: VideoRequest): {
|
|
|
21
21
|
tool: string;
|
|
22
22
|
params: Values;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type MediaRegistrationOptions = {
|
|
25
|
+
services?: readonly string[];
|
|
26
|
+
resolveKey?: (service: string, cfg?: ImageRequest["cfg"]) => Promise<string>;
|
|
27
|
+
isConfigured?: (service: string, cfg?: ImageRequest["cfg"], agentDir?: string) => boolean;
|
|
28
|
+
providerId?: (service: string) => string;
|
|
29
|
+
label?: (service: string, label: string) => string;
|
|
30
|
+
authEnvVars?: string[];
|
|
31
|
+
};
|
|
32
|
+
export declare function registerMediaProviders(api: OpenClawPluginApi, options?: MediaRegistrationOptions): void;
|
|
25
33
|
export {};
|
|
@@ -28,8 +28,8 @@ export function operationModels(endpoint) {
|
|
|
28
28
|
return endpoint.path.endsWith("/videos") ? ["midjourney-video"] : ["midjourney"];
|
|
29
29
|
return [];
|
|
30
30
|
}
|
|
31
|
-
function catalog(api, provider, kind, models, label, capabilities) {
|
|
32
|
-
api.registerModelCatalogProvider({ provider, kinds: [kind], staticCatalog: () => models.map(model => ({ kind, provider, model, label: `${label} / ${model}`, source: "static", capabilities, authEnvVars
|
|
31
|
+
function catalog(api, provider, kind, models, label, capabilities, authEnvVars = ["ACEDATA_API_KEY", "ACEDATACLOUD_API_KEY"]) {
|
|
32
|
+
api.registerModelCatalogProvider({ provider, kinds: [kind], staticCatalog: () => models.map(model => ({ kind, provider, model, label: `${label} / ${model}`, source: "static", capabilities, authEnvVars })) });
|
|
33
33
|
}
|
|
34
34
|
function exactModel(endpoint, model) {
|
|
35
35
|
if (!operationModels(endpoint).includes(model))
|
|
@@ -241,18 +241,25 @@ export function mapVideoRequest(service, req) {
|
|
|
241
241
|
}
|
|
242
242
|
return { tool, params };
|
|
243
243
|
}
|
|
244
|
-
export function registerMediaProviders(api) {
|
|
244
|
+
export function registerMediaProviders(api, options = {}) {
|
|
245
|
+
const includes = (service) => !options.services || options.services.includes(service);
|
|
246
|
+
const resolveKey = options.resolveKey ?? ((service, cfg) => resolveServiceKey(api, service, cfg));
|
|
247
|
+
const isConfigured = options.isConfigured ?? configured;
|
|
248
|
+
const mediaProviderId = options.providerId ?? providerId;
|
|
249
|
+
const label = options.label ?? ((_service, name) => `Ace Data Cloud — ${name}`);
|
|
245
250
|
for (const [id, [generate, edit]] of Object.entries(IMAGE_OPERATIONS)) {
|
|
251
|
+
if (!includes(id))
|
|
252
|
+
continue;
|
|
246
253
|
const service = serviceById(id), endpoint = service.endpoints[generate];
|
|
247
254
|
const models = operationModels(endpoint);
|
|
248
255
|
const provider = {
|
|
249
|
-
id:
|
|
256
|
+
id: mediaProviderId(id), label: label(id, service.label), models,
|
|
250
257
|
defaultModel: String(endpoint.defaults?.model ?? models[0]), defaultTimeoutMs: 600_000,
|
|
251
|
-
isConfigured: ({ cfg, agentDir }) =>
|
|
258
|
+
isConfigured: ({ cfg, agentDir }) => isConfigured(id, cfg, agentDir),
|
|
252
259
|
capabilities: { generate: { maxCount: id === "nano-banana" ? 4 : id === "gpt-image" ? 10 : id === "qwen-image" ? 6 : 1, supportsSize: !!endpoint.properties.size, supportsAspectRatio: !!endpoint.properties.aspect_ratio || id === "flux", supportsResolution: !!endpoint.properties.resolution || id === "seedream" }, edit: { enabled: !!edit, maxInputImages: ["flux", "midjourney"].includes(id) ? 1 : id === "seedream" ? 10 : 4, ...(id === "gpt-image" ? { maxInputImagesByModel: { "dall-e-2": 0, "dall-e-3": 0 } } : {}), ...(id === "seedream" ? { maxInputImagesByModel: { "doubao-seedream-5-0-lite-260128": 14, "doubao-seedream-5-0-pro-260628": 10 } } : {}) }, ...(id === "nano-banana" ? { geometry: { aspectRatios: endpoint.properties.aspect_ratio.enum, resolutions: ["1K", "2K", "4K"] } } : {}) },
|
|
253
260
|
async generateImage(req) {
|
|
254
261
|
const mapped = mapImageRequest(id, req);
|
|
255
|
-
const result = await new ServiceClient(await
|
|
262
|
+
const result = await new ServiceClient(await resolveKey(id, req.cfg)).complete(service, mapped.tool, mapped.params, req.timeoutMs ?? 600_000);
|
|
256
263
|
if (!result.media_urls.length)
|
|
257
264
|
throw new Error(`No image output in completed task ${result.task_id}.`);
|
|
258
265
|
let images;
|
|
@@ -266,85 +273,91 @@ export function registerMediaProviders(api) {
|
|
|
266
273
|
},
|
|
267
274
|
};
|
|
268
275
|
api.registerImageGenerationProvider(provider);
|
|
269
|
-
catalog(api, provider.id, "image_generation", models, service.label, provider.capabilities);
|
|
276
|
+
catalog(api, provider.id, "image_generation", models, service.label, provider.capabilities, options.authEnvVars);
|
|
270
277
|
}
|
|
271
278
|
for (const [id, operation] of Object.entries(VIDEO_OPERATIONS)) {
|
|
279
|
+
if (!includes(id))
|
|
280
|
+
continue;
|
|
272
281
|
const service = serviceById(id), endpoint = service.endpoints[operation], models = operationModels(endpoint);
|
|
273
282
|
const limits = { maxVideos: 1, supportsResolution: !!endpoint.properties.resolution, supportsAspectRatio: !!(endpoint.properties.aspect_ratio || endpoint.properties.ratio), supportsAudio: !!(endpoint.properties.generate_audio || endpoint.properties.audio), supportsWatermark: !!endpoint.properties.watermark, ...(Array.isArray(endpoint.properties.resolution?.enum) ? { resolutions: endpoint.properties.resolution.enum.filter(r => id !== "minimax" || r !== "480P") } : {}) };
|
|
274
283
|
const provider = {
|
|
275
|
-
id:
|
|
284
|
+
id: mediaProviderId(id), label: label(id, service.label), models,
|
|
276
285
|
defaultModel: String(endpoint.defaults?.model ?? models.find(m => !m.endsWith("-i2v") && !m.endsWith("-r2v")) ?? models[0]), defaultTimeoutMs: 900_000,
|
|
277
|
-
isConfigured: ({ cfg, agentDir }) =>
|
|
286
|
+
isConfigured: ({ cfg, agentDir }) => isConfigured(id, cfg, agentDir),
|
|
278
287
|
capabilities: { generate: limits, imageToVideo: { ...limits, enabled: true, maxInputImages: ["seedance", "minimax", "grok"].includes(id) ? 9 : id === "veo" ? 3 : ["kling", "flux", "midjourney"].includes(id) ? 2 : 1 }, videoToVideo: { enabled: ["seedance", "minimax", "happyhorse", "wan", "flux"].includes(id), maxInputVideos: 1 } },
|
|
279
288
|
async generateVideo(req) {
|
|
280
289
|
const mapped = mapVideoRequest(id, req);
|
|
281
|
-
const result = await new ServiceClient(await
|
|
290
|
+
const result = await new ServiceClient(await resolveKey(id, req.cfg)).complete(service, mapped.tool, mapped.params, req.timeoutMs ?? 900_000);
|
|
282
291
|
if (!result.media_urls.length)
|
|
283
292
|
throw new Error(`No video output in completed task ${result.task_id}.`);
|
|
284
293
|
return { videos: result.media_urls.map(url => ({ url, mimeType: "video/mp4" })), model: req.model, metadata: { taskId: result.task_id, traceId: result.trace_id } };
|
|
285
294
|
},
|
|
286
295
|
};
|
|
287
296
|
api.registerVideoGenerationProvider(provider);
|
|
288
|
-
catalog(api, provider.id, "video_generation", models, service.label, provider.capabilities);
|
|
297
|
+
catalog(api, provider.id, "video_generation", models, service.label, provider.capabilities, options.authEnvVars);
|
|
298
|
+
}
|
|
299
|
+
if (includes("suno")) {
|
|
300
|
+
const suno = serviceById("suno"), endpoint = suno.endpoints.suno_generate_audios;
|
|
301
|
+
const music = {
|
|
302
|
+
id: mediaProviderId("suno"), label: label("suno", "Suno"), models: operationModels(endpoint), defaultModel: String(endpoint.defaults?.model ?? "chirp-v6"),
|
|
303
|
+
isConfigured: ({ cfg, agentDir }) => isConfigured("suno", cfg, agentDir),
|
|
304
|
+
capabilities: { generate: { maxTracks: 2, supportsLyrics: true, supportsInstrumental: true }, edit: { enabled: false } },
|
|
305
|
+
async generateMusic(req) {
|
|
306
|
+
exactModel(endpoint, req.model);
|
|
307
|
+
const result = await new ServiceClient(await resolveKey("suno", req.cfg)).complete(suno, "suno_generate_audios", { model: req.model, prompt: req.prompt, ...(req.lyrics ? { custom: true, lyric: req.lyrics } : {}), ...(req.instrumental !== undefined ? { instrumental: req.instrumental } : {}) }, req.timeoutMs ?? 900_000);
|
|
308
|
+
if (!result.media_urls.length)
|
|
309
|
+
throw new Error(`No music output in completed task ${result.task_id}.`);
|
|
310
|
+
let tracks;
|
|
311
|
+
try {
|
|
312
|
+
tracks = await Promise.all(result.media_urls.filter(url => /\.(mp3|wav|ogg|flac|m4a)(\?|$)/i.test(url)).map(url => downloadAsset(url, "audio")));
|
|
313
|
+
}
|
|
314
|
+
catch {
|
|
315
|
+
throw new Error(`Music task ${result.task_id || result.trace_id} completed but media delivery failed. Retrieve this task; do not regenerate.`);
|
|
316
|
+
}
|
|
317
|
+
if (!tracks.length)
|
|
318
|
+
throw new Error("No audio tracks in completed task.");
|
|
319
|
+
return { tracks, model: req.model, metadata: { taskId: result.task_id, traceId: result.trace_id } };
|
|
320
|
+
},
|
|
321
|
+
};
|
|
322
|
+
api.registerMusicGenerationProvider(music);
|
|
323
|
+
catalog(api, music.id, "music_generation", music.models ?? [], "Suno", music.capabilities, options.authEnvVars);
|
|
324
|
+
}
|
|
325
|
+
if (includes("fish-audio")) {
|
|
326
|
+
api.registerSpeechProvider({
|
|
327
|
+
id: mediaProviderId("fish-audio"), label: "Ace Data Cloud — Fish Audio", defaultModel: "s2-pro", models: ["s1", "s2-pro", "s2.1-pro"], defaultTimeoutMs: 300_000,
|
|
328
|
+
resolveConfig: ({ rawConfig }) => {
|
|
329
|
+
const source = record(rawConfig);
|
|
330
|
+
const settings = record(record(source.providers)[providerId("fish-audio")] ?? source);
|
|
331
|
+
const allowed = new Set([...Object.keys(serviceById("fish-audio").endpoints.fish_generate_audio.properties), "model", "voice", "voiceId", "modelId", "responseFormat"]);
|
|
332
|
+
return { ...Object.fromEntries(Object.entries(settings).filter(([key]) => allowed.has(key))), model: settings.model ?? "s2-pro" };
|
|
333
|
+
},
|
|
334
|
+
resolveTalkOverrides: ({ params }) => ({ ...(params.voiceId ? { voice: params.voiceId } : {}), ...(params.modelId ? { model: params.modelId } : {}) }),
|
|
335
|
+
isConfigured: ({ cfg }) => isConfigured("fish-audio", cfg),
|
|
336
|
+
async synthesize(req) {
|
|
337
|
+
const { apiKey: _key, ...settings } = req.providerConfig;
|
|
338
|
+
const merged = { ...settings, ...req.providerOverrides };
|
|
339
|
+
const { voice, modelId, voiceId, responseFormat, ...rest } = merged;
|
|
340
|
+
const params = { ...rest, ...(modelId ? { model: modelId } : {}), ...(voice || voiceId ? { reference_id: voice || voiceId } : {}), text: req.text, format: responseFormat ?? rest.format ?? "mp3" };
|
|
341
|
+
const result = await new ServiceClient(await resolveKey("fish-audio", req.cfg)).complete(serviceById("fish-audio"), "fish_generate_audio", params, req.timeoutMs);
|
|
342
|
+
if (!result.media_urls[0])
|
|
343
|
+
throw new Error(`No speech audio in completed task ${result.task_id}.`);
|
|
344
|
+
let asset;
|
|
345
|
+
try {
|
|
346
|
+
asset = await downloadAsset(result.media_urls[0], "audio");
|
|
347
|
+
}
|
|
348
|
+
catch {
|
|
349
|
+
throw new Error(`Speech task ${result.task_id || result.trace_id} completed but media delivery failed. Retrieve this task; do not synthesize again.`);
|
|
350
|
+
}
|
|
351
|
+
const format = String(params.format);
|
|
352
|
+
return { audioBuffer: asset.buffer, outputFormat: format, fileExtension: `.${format}`, voiceCompatible: false };
|
|
353
|
+
},
|
|
354
|
+
async listVoices(req) {
|
|
355
|
+
const result = await new ServiceClient(await resolveKey("fish-audio", req.cfg)).invoke(serviceById("fish-audio"), "fish_search_voices", { page_size: 20 });
|
|
356
|
+
const data = record(result.result);
|
|
357
|
+
const voices = data.items ?? data.data;
|
|
358
|
+
return Array.isArray(voices) ? voices.map(v => { const row = record(v); return { id: String(row._id ?? row.id), name: String(row.title ?? row.name ?? row._id ?? row.id) }; }) : [];
|
|
359
|
+
},
|
|
360
|
+
});
|
|
361
|
+
catalog(api, mediaProviderId("fish-audio"), "voice", ["s1", "s2-pro", "s2.1-pro"], "Fish Audio");
|
|
289
362
|
}
|
|
290
|
-
const suno = serviceById("suno"), endpoint = suno.endpoints.suno_generate_audios;
|
|
291
|
-
const music = {
|
|
292
|
-
id: providerId("suno"), label: "Ace Data Cloud — Suno", models: operationModels(endpoint), defaultModel: String(endpoint.defaults?.model ?? "chirp-v6"),
|
|
293
|
-
isConfigured: ({ cfg, agentDir }) => configured("suno", cfg, agentDir),
|
|
294
|
-
capabilities: { generate: { maxTracks: 2, supportsLyrics: true, supportsInstrumental: true }, edit: { enabled: false } },
|
|
295
|
-
async generateMusic(req) {
|
|
296
|
-
exactModel(endpoint, req.model);
|
|
297
|
-
const result = await new ServiceClient(await resolveServiceKey(api, "suno", req.cfg)).complete(suno, "suno_generate_audios", { model: req.model, prompt: req.prompt, ...(req.lyrics ? { custom: true, lyric: req.lyrics } : {}), ...(req.instrumental !== undefined ? { instrumental: req.instrumental } : {}) }, req.timeoutMs ?? 900_000);
|
|
298
|
-
if (!result.media_urls.length)
|
|
299
|
-
throw new Error(`No music output in completed task ${result.task_id}.`);
|
|
300
|
-
let tracks;
|
|
301
|
-
try {
|
|
302
|
-
tracks = await Promise.all(result.media_urls.filter(url => /\.(mp3|wav|ogg|flac|m4a)(\?|$)/i.test(url)).map(url => downloadAsset(url, "audio")));
|
|
303
|
-
}
|
|
304
|
-
catch {
|
|
305
|
-
throw new Error(`Music task ${result.task_id || result.trace_id} completed but media delivery failed. Retrieve this task; do not regenerate.`);
|
|
306
|
-
}
|
|
307
|
-
if (!tracks.length)
|
|
308
|
-
throw new Error("No audio tracks in completed task.");
|
|
309
|
-
return { tracks, model: req.model, metadata: { taskId: result.task_id, traceId: result.trace_id } };
|
|
310
|
-
},
|
|
311
|
-
};
|
|
312
|
-
api.registerMusicGenerationProvider(music);
|
|
313
|
-
catalog(api, music.id, "music_generation", music.models ?? [], "Suno", music.capabilities);
|
|
314
|
-
api.registerSpeechProvider({
|
|
315
|
-
id: providerId("fish-audio"), label: "Ace Data Cloud — Fish Audio", defaultModel: "s2-pro", models: ["s1", "s2-pro", "s2.1-pro"], defaultTimeoutMs: 300_000,
|
|
316
|
-
resolveConfig: ({ rawConfig }) => {
|
|
317
|
-
const source = record(rawConfig);
|
|
318
|
-
const settings = record(record(source.providers)[providerId("fish-audio")] ?? source);
|
|
319
|
-
const allowed = new Set([...Object.keys(serviceById("fish-audio").endpoints.fish_generate_audio.properties), "model", "voice", "voiceId", "modelId", "responseFormat"]);
|
|
320
|
-
return { ...Object.fromEntries(Object.entries(settings).filter(([key]) => allowed.has(key))), model: settings.model ?? "s2-pro" };
|
|
321
|
-
},
|
|
322
|
-
resolveTalkOverrides: ({ params }) => ({ ...(params.voiceId ? { voice: params.voiceId } : {}), ...(params.modelId ? { model: params.modelId } : {}) }),
|
|
323
|
-
isConfigured: ({ cfg }) => configured("fish-audio", cfg),
|
|
324
|
-
async synthesize(req) {
|
|
325
|
-
const { apiKey: _key, ...settings } = req.providerConfig;
|
|
326
|
-
const merged = { ...settings, ...req.providerOverrides };
|
|
327
|
-
const { voice, modelId, voiceId, responseFormat, ...rest } = merged;
|
|
328
|
-
const params = { ...rest, ...(modelId ? { model: modelId } : {}), ...(voice || voiceId ? { reference_id: voice || voiceId } : {}), text: req.text, format: responseFormat ?? rest.format ?? "mp3" };
|
|
329
|
-
const result = await new ServiceClient(await resolveServiceKey(api, "fish-audio", req.cfg)).complete(serviceById("fish-audio"), "fish_generate_audio", params, req.timeoutMs);
|
|
330
|
-
if (!result.media_urls[0])
|
|
331
|
-
throw new Error(`No speech audio in completed task ${result.task_id}.`);
|
|
332
|
-
let asset;
|
|
333
|
-
try {
|
|
334
|
-
asset = await downloadAsset(result.media_urls[0], "audio");
|
|
335
|
-
}
|
|
336
|
-
catch {
|
|
337
|
-
throw new Error(`Speech task ${result.task_id || result.trace_id} completed but media delivery failed. Retrieve this task; do not synthesize again.`);
|
|
338
|
-
}
|
|
339
|
-
const format = String(params.format);
|
|
340
|
-
return { audioBuffer: asset.buffer, outputFormat: format, fileExtension: `.${format}`, voiceCompatible: false };
|
|
341
|
-
},
|
|
342
|
-
async listVoices(req) {
|
|
343
|
-
const result = await new ServiceClient(await resolveServiceKey(api, "fish-audio", req.cfg)).invoke(serviceById("fish-audio"), "fish_search_voices", { page_size: 20 });
|
|
344
|
-
const data = record(result.result);
|
|
345
|
-
const voices = data.items ?? data.data;
|
|
346
|
-
return Array.isArray(voices) ? voices.map(v => { const row = record(v); return { id: String(row._id ?? row.id), name: String(row.title ?? row.name ?? row._id ?? row.id) }; }) : [];
|
|
347
|
-
},
|
|
348
|
-
});
|
|
349
|
-
catalog(api, providerId("fish-audio"), "voice", ["s1", "s2-pro", "s2.1-pro"], "Fish Audio");
|
|
350
363
|
}
|
|
@@ -3,4 +3,9 @@ import { type Endpoint, type Schema } from "./catalog.js";
|
|
|
3
3
|
export declare function resolveServiceKey(api: OpenClawPluginApi, service: string, config?: OpenClawConfig): Promise<string>;
|
|
4
4
|
export declare function toolSchema(endpoint: Endpoint): Schema;
|
|
5
5
|
export declare function operationName(name: string): string;
|
|
6
|
-
export
|
|
6
|
+
export type ServiceToolOptions = {
|
|
7
|
+
services?: readonly string[];
|
|
8
|
+
prefix?: string;
|
|
9
|
+
resolveKey?: (service: string, config?: OpenClawConfig) => Promise<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare function registerServiceTools(api: OpenClawPluginApi, options?: ServiceToolOptions): void;
|
|
@@ -37,11 +37,11 @@ export function toolSchema(endpoint) {
|
|
|
37
37
|
return { type: "object", properties, ...(required.length ? { required } : {}), additionalProperties: false };
|
|
38
38
|
}
|
|
39
39
|
export function operationName(name) { return `acedata_${name}`; }
|
|
40
|
-
export function registerServiceTools(api) {
|
|
41
|
-
const entries = SERVICES.flatMap(service => Object.entries(service.endpoints).filter(([name]) => !name.includes(":")).map(([name, endpoint]) => ({ service, name, endpoint })));
|
|
40
|
+
export function registerServiceTools(api, options = {}) {
|
|
41
|
+
const entries = SERVICES.filter(service => !options.services || options.services.includes(service.id)).flatMap(service => Object.entries(service.endpoints).filter(([name]) => !name.includes(":")).map(([name, endpoint]) => ({ service, name, endpoint })));
|
|
42
42
|
for (const { service, name, endpoint } of entries) {
|
|
43
43
|
api.registerTool(ctx => {
|
|
44
|
-
const nameInHost = operationName(name);
|
|
44
|
+
const nameInHost = options.prefix ? `${options.prefix}${name}` : operationName(name);
|
|
45
45
|
return {
|
|
46
46
|
name: nameInHost, label: endpoint.tool?.label ?? `${service.label}: ${name}`,
|
|
47
47
|
description: `${endpoint.tool?.description ?? name} Uses Ace Data Cloud credits for billable operations. Prompts and reference URLs are sent to api.acedata.cloud. Preserve pending task IDs; do not repeat creation requests.`,
|
|
@@ -49,11 +49,11 @@ export function registerServiceTools(api) {
|
|
|
49
49
|
async execute(_id, args, signal) {
|
|
50
50
|
const config = ctx.getRuntimeConfig?.() ?? ctx.runtimeConfig ?? ctx.config;
|
|
51
51
|
const serviceKey = record(record(record(config?.plugins?.entries?.acedatacloud?.config).serviceCredentials)[service.id]).apiKey;
|
|
52
|
-
const key = serviceKey !== undefined ? await resolveServiceKey(api, service.id, config) : await ctx.resolveApiKeyForProvider?.("acedatacloud") ?? await resolveServiceKey(api, service.id, config);
|
|
52
|
+
const key = options.resolveKey ? await options.resolveKey(service.id, config) : serviceKey !== undefined ? await resolveServiceKey(api, service.id, config) : await ctx.resolveApiKeyForProvider?.("acedatacloud") ?? await resolveServiceKey(api, service.id, config);
|
|
53
53
|
const result = await new ServiceClient(key).invoke(service, name, record(args), signal);
|
|
54
54
|
return { content: [{ type: "text", text: JSON.stringify(result) }], details: result };
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
|
-
}, { name: operationName(name), optional: true });
|
|
57
|
+
}, { name: options.prefix ? `${options.prefix}${name}` : operationName(name), optional: true });
|
|
58
58
|
}
|
|
59
59
|
}
|
package/docs/architecture.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Decision
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Maintain one canonical implementation in this repository. The full `@acedatacloud/openclaw-provider` collection remains available; five brand-specific packages expose only Suno, Seedance, HappyHorse, GPT Image or Nano Banana for independent discovery and installation.
|
|
6
6
|
Keep chat, search, shared transport, native media adapters and per-service contracts in separate modules.
|
|
7
7
|
|
|
8
8
|
| Option | Installation and auth | Maintenance/review | Discovery | Decision |
|
|
9
9
|
| --- | --- | --- | --- | --- |
|
|
10
|
-
| One package per service | Up to 18 installs and repeated setup | Many releases, scans and duplicated transport | Many similar listings; no guaranteed ranking benefit |
|
|
10
|
+
| One package per service | Up to 18 installs and repeated setup | Many releases, scans and duplicated transport | Many similar listings; no guaranteed ranking benefit | Selected for five branded services; unique runtime IDs, contracts, keys and native providers |
|
|
11
11
|
| LLM package plus media package | Two installs; shared credentials need coordination | Two release/security boundaries | Clear category split | Reasonable if ownership or dependencies diverge later |
|
|
12
|
-
| One vendor provider, modular capabilities | One install; shared key or optional service-scoped keys | One reviewed transport; independently tested adapters | Models category plus native media capability discovery, named service models and tools |
|
|
12
|
+
| One vendor provider, modular capabilities | One install; shared key or optional service-scoped keys | One reviewed transport; independently tested adapters | Models category plus native media capability discovery, named service models and tools | Complementary collection |
|
|
13
13
|
|
|
14
14
|
OpenClaw's provider guide registers media and search beside text inference. Its OpenAI,
|
|
15
15
|
Google, MiniMax and fal providers use that pattern. A plugin is an ownership boundary;
|
|
@@ -56,3 +56,11 @@ services accessible through Ace Data Cloud, not endorsements from those vendors.
|
|
|
56
56
|
|
|
57
57
|
An installable npm release, a ClawHub staged upload, a public market listing and an
|
|
58
58
|
official publisher badge are separate gates. Claims and links must match verified state.
|
|
59
|
+
|
|
60
|
+
## Independent branded discovery (2026-10-18)
|
|
61
|
+
|
|
62
|
+
ClawHub permits independent packages, but requires unique runtime IDs within a publisher. The five packages in `service-plugins/` use service-specific IDs, credentials and native model references; optional tool names are distinct from the collection. No chat model is added or selected by a media-only service package. Existing explicit media defaults are preserved. The same contract client, polling, validation and media adapters are reused; generated artifacts contain only that service API contract. No new routing, price or fallback is added.
|
|
63
|
+
|
|
64
|
+
`pnpm build:services` materializes five packages from canonical source. Their READMEs require checking the actual published ClawHub package/version; npm/ClawHub publication, security checks, public brand search and independent installation are verified separately. Source PR is not a listing. Skill-only entries have separate ownership in Skills and do not install these code plugins.
|
|
65
|
+
|
|
66
|
+
Official default provider discovery remains separate: OpenClaw external-provider catalog supports reviewed external packages, but current VISION directs vendor promotion to ClawHub and default/core promotion requires maintainer ownership and product/security justification. The installed collection auth choice is not proof of fresh-host default inclusion.
|
package/docs/capabilities.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Service capability reference
|
|
2
2
|
|
|
3
|
-
One Ace Data Cloud provider package includes the existing
|
|
3
|
+
One Ace Data Cloud provider package includes the existing 91-model chat catalog and
|
|
4
4
|
17 service modules with 97 optional operations. The source baseline is the current
|
|
5
5
|
Dify service repositories, verified on October 11, 2026. Each contract records its
|
|
6
6
|
immutable repository commit. Full operation parameters are exposed in the tool schema.
|
package/docs/cookbook.md
CHANGED
|
@@ -4,13 +4,37 @@ Install the package from [ClawHub](https://clawhub.ai/acedatacloud/plugins/openc
|
|
|
4
4
|
and use the onboarding prompt for the API key:
|
|
5
5
|
|
|
6
6
|
```sh
|
|
7
|
-
openclaw plugins install clawhub:@acedatacloud/openclaw-provider
|
|
7
|
+
openclaw plugins install clawhub:@acedatacloud/openclaw-provider
|
|
8
8
|
openclaw onboard --auth-choice acedatacloud-api-key
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
The command installs the latest release published on ClawHub. To pin a release,
|
|
12
|
+
append the version shown on the listing, for example `@2026.10.19`. Check that
|
|
13
|
+
channel before reusing a version from npm or GitHub Releases.
|
|
14
|
+
|
|
11
15
|
The package is vendor maintained. Review the host's install prompts and the
|
|
12
16
|
listing's security audit. Official publisher status and default bundling are
|
|
13
|
-
separate OpenClaw decisions.
|
|
17
|
+
separate OpenClaw decisions. On OpenClaw 2026.10.4, this community release can
|
|
18
|
+
load with a `provenance-invalid` warning. Review the source and diagnostics with
|
|
19
|
+
`openclaw plugins inspect acedatacloud --runtime --json`; installation does not
|
|
20
|
+
grant official-publisher status or trusted-only host features.
|
|
21
|
+
|
|
22
|
+
## Self-installed plugin and managed deployment
|
|
23
|
+
|
|
24
|
+
The installation above adds this provider to an OpenClaw instance that you
|
|
25
|
+
operate. It supplies the model catalog and optional media/search tools described
|
|
26
|
+
in this package; allowlist only the tools that you need.
|
|
27
|
+
|
|
28
|
+
An Ace Data Cloud managed OpenClaw deployment is a separate setup path. Its
|
|
29
|
+
creation wizard can seed one platform chat model and an instance-specific
|
|
30
|
+
credential into the native configuration. The pinned runtime does not install
|
|
31
|
+
this provider package or its 97 optional tools automatically. Connect to that
|
|
32
|
+
instance's native dashboard for chat; check its OpenClaw version and install the
|
|
33
|
+
provider separately if you need these plugin capabilities. Redeployment preserves
|
|
34
|
+
existing native settings. Deployment duration and model/API usage are billed
|
|
35
|
+
separately.
|
|
36
|
+
|
|
37
|
+
## Authentication and model selection
|
|
14
38
|
|
|
15
39
|
For environment-based authentication, set `ACEDATA_API_KEY` or
|
|
16
40
|
`ACEDATACLOUD_API_KEY` in the environment where OpenClaw runs. Non-interactive
|
|
@@ -28,7 +52,7 @@ openclaw infer model run --model acedatacloud/gpt-4.1-mini --prompt "Reply with
|
|
|
28
52
|
Each model selects its documented API and base URL. Claude Opus/Sonnet 5.5 use
|
|
29
53
|
Messages with Bearer authentication; Responses-only models use Responses. Other
|
|
30
54
|
models use their family's Chat Completions endpoint. See [the supported
|
|
31
|
-
catalog](model-catalog.md) for all
|
|
55
|
+
catalog](model-catalog.md) for all 91 model IDs, capabilities, and reference costs.
|
|
32
56
|
Image, video, and music generation are separate capabilities.
|
|
33
57
|
|
|
34
58
|
```sh
|
package/docs/model-catalog.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Supported model catalog
|
|
2
2
|
|
|
3
|
-
The plugin includes **
|
|
3
|
+
The plugin includes **91 public chat models** across seven families, with the base catalog refreshed on October 11, 2026 and Fable 5.2 added on November 13, 2026. Catalog membership is derived from the [published Ace Data Cloud directory](https://platform.acedata.cloud/api/v1/models/catalog/?modality=chat) and each bound API contract. Models are not restricted to the subset used for smoke tests.
|
|
4
4
|
|
|
5
5
|
Each request preserves the selected public model ID. The plugin does not add fallback or substitute models. Unknown IDs are not assigned invented capabilities. The three excluded chat-classified products (`gpt-4o-all`, `gpt-4o-image`, `gpt-5.1-all`) expose image-generation or mixed-product behavior, not this standard text-inference contract. Runtime discovery also contains embeddings, image models and retired entries; those do not become chat models.
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ Each request preserves the selected public model ID. The plugin does not add fal
|
|
|
10
10
|
| ---------------- | -----: | ------------------------------------------------------------------ |
|
|
11
11
|
| Chat Completions | 83 | `/openai`, `/v1`, `/gemini`, `/grok`, `/deepseek`, `/kimi`, `/glm` |
|
|
12
12
|
| Responses | 5 | `/openai/responses` |
|
|
13
|
-
| Messages |
|
|
13
|
+
| Messages | 3 | `/v1/messages`, with explicit Bearer authentication |
|
|
14
14
|
|
|
15
15
|
Input and reasoning metadata are model-specific. Image input is advertised only when both the model definition and the current public Ace Data Cloud catalog support it. Native PDF/audio/video input is not copied onto Chat Completions models. Reasoning levels and toggles use the selected host protocol; toggle-only hosts do not receive an unsupported `reasoning_effort`.
|
|
16
16
|
|
|
@@ -28,6 +28,7 @@ Context/output limits use the reviewed public model definitions from [Models.dev
|
|
|
28
28
|
| `claude-3-sonnet-20240229` | openai-completions | yes | — |
|
|
29
29
|
| `claude-fable-5` | openai-completions | yes | low, medium, high, xhigh, max |
|
|
30
30
|
| `claude-fable-5-1` | openai-completions | yes | low, medium, high, xhigh, max |
|
|
31
|
+
| `claude-fable-5-2` | anthropic-messages | yes | high (published default) |
|
|
31
32
|
| `claude-haiku-4-5-20251001` | openai-completions | yes | low, medium, high, max |
|
|
32
33
|
| `claude-opus-4-1-20250805` | openai-completions | yes | low, medium, high |
|
|
33
34
|
| `claude-opus-4-20250514` | openai-completions | yes | low, medium, high |
|
|
@@ -88,7 +89,7 @@ Context/output limits use the reviewed public model definitions from [Models.dev
|
|
|
88
89
|
| `gpt-5.5-pro` | openai-responses | yes | medium, high, xhigh |
|
|
89
90
|
| `gpt-5.6-luna` | openai-completions | yes | none, low, medium, high, xhigh, max |
|
|
90
91
|
| `gpt-5.6-sol` | openai-completions | yes | none, low, medium, high, xhigh, max |
|
|
91
|
-
| `gpt-5.6-sol-fast`
|
|
92
|
+
| `gpt-5.6-sol-fast` | openai-completions | yes | none, low, medium, high, xhigh, max |
|
|
92
93
|
| `gpt-5.6-terra` | openai-completions | yes | none, low, medium, high, xhigh, max |
|
|
93
94
|
| `gpt-6-astra` | openai-completions | yes | low, medium, high, xhigh, max |
|
|
94
95
|
| `gpt-6-luna` | openai-completions | yes | none, low, medium, high, xhigh, max |
|
|
@@ -124,3 +125,9 @@ The original 89 models were checked with 534 short/long-context ordinary-input,
|
|
|
124
125
|
`src/chat/model-catalog.json` is the reviewed source snapshot, with per-model public API references, package rates and metadata. `pnpm sync-catalog` generates runtime and manifest entries from the same source; `pnpm sync-catalog:check` prevents projection drift. Refresh the published directory and bound API records together, then update metadata for every added or changed model instead of restricting membership to tested examples. Never use the billing-rule inventory alone as a public model list.
|
|
125
126
|
|
|
126
127
|
Fast serving alias `gpt-5.6-sol-fast` was reconciled on October 11 with the public catalog and both API enums. It preserves the exact requested ID and uses the GPT-5.6 Sol model contract, with its separately published fast prices. Six independent short/long-context price samples and a real tool-call result are reused from the provider-directory validation.
|
|
128
|
+
|
|
129
|
+
## Claude Fable 5.2
|
|
130
|
+
|
|
131
|
+
`claude-fable-5-2` uses native Messages, preserves its model ID, and has no automatic substitute. Thinking stays enabled; omit sampling overrides and forced tool choice. Count Tokens and Responses are not published for this model. Catalog inclusion is independent of current account channel health.
|
|
132
|
+
|
|
133
|
+
The entry-package estimate ($7 / 40 Credits) is $5.8869258 input, $29.434629 output, $0.147173075 cache read and $7.35865725 cache write per million tokens. The advertised maximum-package rate ($13,584 / 142,800 Credits) is $3.20 / $16 input/output, $0.08 cache read and $4 cache write (5 minutes); 1-hour cache write costs $6.40. The host exposes one cache-write estimate, so this entry uses 5 minutes and does not advertise long-cache-retention support.
|
package/openclaw.plugin.json
CHANGED
|
@@ -784,6 +784,37 @@
|
|
|
784
784
|
"off": "low"
|
|
785
785
|
}
|
|
786
786
|
},
|
|
787
|
+
{
|
|
788
|
+
"id": "claude-fable-5-2",
|
|
789
|
+
"name": "Claude Fable 5.2",
|
|
790
|
+
"api": "anthropic-messages",
|
|
791
|
+
"baseUrl": "https://api.acedata.cloud",
|
|
792
|
+
"reasoning": true,
|
|
793
|
+
"input": [
|
|
794
|
+
"text",
|
|
795
|
+
"image"
|
|
796
|
+
],
|
|
797
|
+
"contextWindow": 1000000,
|
|
798
|
+
"maxTokens": 128000,
|
|
799
|
+
"cost": {
|
|
800
|
+
"input": 5.886925799999999,
|
|
801
|
+
"output": 29.434628999999997,
|
|
802
|
+
"cacheRead": 0.147173075,
|
|
803
|
+
"cacheWrite": 7.358657249999999
|
|
804
|
+
},
|
|
805
|
+
"compat": {
|
|
806
|
+
"supportsEagerToolInputStreaming": false,
|
|
807
|
+
"supportsLongCacheRetention": false
|
|
808
|
+
},
|
|
809
|
+
"thinkingLevelMap": {
|
|
810
|
+
"low": "high",
|
|
811
|
+
"medium": "high",
|
|
812
|
+
"high": "high",
|
|
813
|
+
"xhigh": "high",
|
|
814
|
+
"max": "high",
|
|
815
|
+
"off": "high"
|
|
816
|
+
}
|
|
817
|
+
},
|
|
787
818
|
{
|
|
788
819
|
"id": "claude-haiku-4-5-20251001",
|
|
789
820
|
"name": "Claude Haiku 4.5",
|
|
@@ -5744,5 +5775,6 @@
|
|
|
5744
5775
|
"acedatacloud-wan": "acedatacloud",
|
|
5745
5776
|
"acedatacloud-suno": "acedatacloud",
|
|
5746
5777
|
"acedatacloud-fish-audio": "acedatacloud"
|
|
5747
|
-
}
|
|
5778
|
+
},
|
|
5779
|
+
"version": "2026.11.13"
|
|
5748
5780
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acedatacloud/openclaw-provider",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.13",
|
|
4
4
|
"description": "Ace Data Cloud models, image, video, music, speech, search and creative tools for OpenClaw.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openclaw",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"sync-catalog": "node scripts/sync-catalog.mjs",
|
|
101
101
|
"sync-catalog:check": "node scripts/sync-catalog.mjs --check",
|
|
102
102
|
"sync-services:check": "node scripts/sync-services.mjs --check",
|
|
103
|
-
"sync-services": "node scripts/sync-services.mjs"
|
|
103
|
+
"sync-services": "node scripts/sync-services.mjs",
|
|
104
|
+
"build:services": "pnpm build && node scripts/build-service-plugins.mjs"
|
|
104
105
|
}
|
|
105
106
|
}
|