Skip to content

Commit b56a824

Browse files
authored
Merge branch 'main' into vincentkoc-code/tts-plugin-land
2 parents 2874064 + 71113ea commit b56a824

File tree

13 files changed

+285
-51
lines changed

13 files changed

+285
-51
lines changed

docs/.generated/plugin-sdk-api-baseline.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@
415415
"exportName": "OpenClawPluginApi",
416416
"kind": "type",
417417
"source": {
418-
"line": 1311,
418+
"line": 1313,
419419
"path": "src/plugins/types.ts"
420420
}
421421
},
@@ -3396,7 +3396,7 @@
33963396
"exportName": "OpenClawPluginApi",
33973397
"kind": "type",
33983398
"source": {
3399-
"line": 1311,
3399+
"line": 1313,
34003400
"path": "src/plugins/types.ts"
34013401
}
34023402
},
@@ -3405,7 +3405,7 @@
34053405
"exportName": "OpenClawPluginCommandDefinition",
34063406
"kind": "type",
34073407
"source": {
3408-
"line": 1065,
3408+
"line": 1067,
34093409
"path": "src/plugins/types.ts"
34103410
}
34113411
},
@@ -3423,7 +3423,7 @@
34233423
"exportName": "OpenClawPluginDefinition",
34243424
"kind": "type",
34253425
"source": {
3426-
"line": 1293,
3426+
"line": 1295,
34273427
"path": "src/plugins/types.ts"
34283428
}
34293429
},
@@ -3432,7 +3432,7 @@
34323432
"exportName": "OpenClawPluginService",
34333433
"kind": "type",
34343434
"source": {
3435-
"line": 1282,
3435+
"line": 1284,
34363436
"path": "src/plugins/types.ts"
34373437
}
34383438
},
@@ -3441,7 +3441,7 @@
34413441
"exportName": "OpenClawPluginServiceContext",
34423442
"kind": "type",
34433443
"source": {
3444-
"line": 1274,
3444+
"line": 1276,
34453445
"path": "src/plugins/types.ts"
34463446
}
34473447
},
@@ -3477,7 +3477,7 @@
34773477
"exportName": "PluginInteractiveTelegramHandlerContext",
34783478
"kind": "type",
34793479
"source": {
3480-
"line": 1094,
3480+
"line": 1096,
34813481
"path": "src/plugins/types.ts"
34823482
}
34833483
},
@@ -3893,7 +3893,7 @@
38933893
"exportName": "OpenClawPluginApi",
38943894
"kind": "type",
38953895
"source": {
3896-
"line": 1311,
3896+
"line": 1313,
38973897
"path": "src/plugins/types.ts"
38983898
}
38993899
},
@@ -3902,7 +3902,7 @@
39023902
"exportName": "OpenClawPluginCommandDefinition",
39033903
"kind": "type",
39043904
"source": {
3905-
"line": 1065,
3905+
"line": 1067,
39063906
"path": "src/plugins/types.ts"
39073907
}
39083908
},
@@ -3920,7 +3920,7 @@
39203920
"exportName": "OpenClawPluginDefinition",
39213921
"kind": "type",
39223922
"source": {
3923-
"line": 1293,
3923+
"line": 1295,
39243924
"path": "src/plugins/types.ts"
39253925
}
39263926
},
@@ -3929,7 +3929,7 @@
39293929
"exportName": "OpenClawPluginService",
39303930
"kind": "type",
39313931
"source": {
3932-
"line": 1282,
3932+
"line": 1284,
39333933
"path": "src/plugins/types.ts"
39343934
}
39353935
},
@@ -3938,7 +3938,7 @@
39383938
"exportName": "OpenClawPluginServiceContext",
39393939
"kind": "type",
39403940
"source": {
3941-
"line": 1274,
3941+
"line": 1276,
39423942
"path": "src/plugins/types.ts"
39433943
}
39443944
},
@@ -3956,7 +3956,7 @@
39563956
"exportName": "PluginInteractiveTelegramHandlerContext",
39573957
"kind": "type",
39583958
"source": {
3959-
"line": 1094,
3959+
"line": 1096,
39603960
"path": "src/plugins/types.ts"
39613961
}
39623962
},

docs/.generated/plugin-sdk-api-baseline.jsonl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{"declaration":"export type ImageGenerationSourceImage = ImageGenerationSourceImage;","entrypoint":"index","exportName":"ImageGenerationSourceImage","importSpecifier":"openclaw/plugin-sdk","kind":"type","recordType":"export","sourceLine":14,"sourcePath":"src/image-generation/types.ts"}
4545
{"declaration":"export type MediaUnderstandingProviderPlugin = MediaUnderstandingProvider;","entrypoint":"index","exportName":"MediaUnderstandingProviderPlugin","importSpecifier":"openclaw/plugin-sdk","kind":"type","recordType":"export","sourceLine":950,"sourcePath":"src/plugins/types.ts"}
4646
{"declaration":"export type OpenClawConfig = OpenClawConfig;","entrypoint":"index","exportName":"OpenClawConfig","importSpecifier":"openclaw/plugin-sdk","kind":"type","recordType":"export","sourceLine":32,"sourcePath":"src/config/types.openclaw.ts"}
47-
{"declaration":"export type OpenClawPluginApi = OpenClawPluginApi;","entrypoint":"index","exportName":"OpenClawPluginApi","importSpecifier":"openclaw/plugin-sdk","kind":"type","recordType":"export","sourceLine":1311,"sourcePath":"src/plugins/types.ts"}
47+
{"declaration":"export type OpenClawPluginApi = OpenClawPluginApi;","entrypoint":"index","exportName":"OpenClawPluginApi","importSpecifier":"openclaw/plugin-sdk","kind":"type","recordType":"export","sourceLine":1313,"sourcePath":"src/plugins/types.ts"}
4848
{"declaration":"export type OpenClawPluginConfigSchema = OpenClawPluginConfigSchema;","entrypoint":"index","exportName":"OpenClawPluginConfigSchema","importSpecifier":"openclaw/plugin-sdk","kind":"type","recordType":"export","sourceLine":88,"sourcePath":"src/plugins/types.ts"}
4949
{"declaration":"export type PluginLogger = PluginLogger;","entrypoint":"index","exportName":"PluginLogger","importSpecifier":"openclaw/plugin-sdk","kind":"type","recordType":"export","sourceLine":59,"sourcePath":"src/plugins/types.ts"}
5050
{"declaration":"export type PluginRuntime = PluginRuntime;","entrypoint":"index","exportName":"PluginRuntime","importSpecifier":"openclaw/plugin-sdk","kind":"type","recordType":"export","sourceLine":54,"sourcePath":"src/plugins/runtime/types.ts"}
@@ -373,16 +373,16 @@
373373
{"declaration":"export type GatewayRequestHandlerOptions = GatewayRequestHandlerOptions;","entrypoint":"core","exportName":"GatewayRequestHandlerOptions","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":112,"sourcePath":"src/gateway/server-methods/types.ts"}
374374
{"declaration":"export type MediaUnderstandingProviderPlugin = MediaUnderstandingProvider;","entrypoint":"core","exportName":"MediaUnderstandingProviderPlugin","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":950,"sourcePath":"src/plugins/types.ts"}
375375
{"declaration":"export type OpenClawConfig = OpenClawConfig;","entrypoint":"core","exportName":"OpenClawConfig","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":32,"sourcePath":"src/config/types.openclaw.ts"}
376-
{"declaration":"export type OpenClawPluginApi = OpenClawPluginApi;","entrypoint":"core","exportName":"OpenClawPluginApi","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1311,"sourcePath":"src/plugins/types.ts"}
377-
{"declaration":"export type OpenClawPluginCommandDefinition = OpenClawPluginCommandDefinition;","entrypoint":"core","exportName":"OpenClawPluginCommandDefinition","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1065,"sourcePath":"src/plugins/types.ts"}
376+
{"declaration":"export type OpenClawPluginApi = OpenClawPluginApi;","entrypoint":"core","exportName":"OpenClawPluginApi","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1313,"sourcePath":"src/plugins/types.ts"}
377+
{"declaration":"export type OpenClawPluginCommandDefinition = OpenClawPluginCommandDefinition;","entrypoint":"core","exportName":"OpenClawPluginCommandDefinition","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1067,"sourcePath":"src/plugins/types.ts"}
378378
{"declaration":"export type OpenClawPluginConfigSchema = OpenClawPluginConfigSchema;","entrypoint":"core","exportName":"OpenClawPluginConfigSchema","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":88,"sourcePath":"src/plugins/types.ts"}
379-
{"declaration":"export type OpenClawPluginDefinition = OpenClawPluginDefinition;","entrypoint":"core","exportName":"OpenClawPluginDefinition","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1293,"sourcePath":"src/plugins/types.ts"}
380-
{"declaration":"export type OpenClawPluginService = OpenClawPluginService;","entrypoint":"core","exportName":"OpenClawPluginService","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1282,"sourcePath":"src/plugins/types.ts"}
381-
{"declaration":"export type OpenClawPluginServiceContext = OpenClawPluginServiceContext;","entrypoint":"core","exportName":"OpenClawPluginServiceContext","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1274,"sourcePath":"src/plugins/types.ts"}
379+
{"declaration":"export type OpenClawPluginDefinition = OpenClawPluginDefinition;","entrypoint":"core","exportName":"OpenClawPluginDefinition","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1295,"sourcePath":"src/plugins/types.ts"}
380+
{"declaration":"export type OpenClawPluginService = OpenClawPluginService;","entrypoint":"core","exportName":"OpenClawPluginService","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1284,"sourcePath":"src/plugins/types.ts"}
381+
{"declaration":"export type OpenClawPluginServiceContext = OpenClawPluginServiceContext;","entrypoint":"core","exportName":"OpenClawPluginServiceContext","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1276,"sourcePath":"src/plugins/types.ts"}
382382
{"declaration":"export type OpenClawPluginToolContext = OpenClawPluginToolContext;","entrypoint":"core","exportName":"OpenClawPluginToolContext","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":103,"sourcePath":"src/plugins/types.ts"}
383383
{"declaration":"export type OpenClawPluginToolFactory = OpenClawPluginToolFactory;","entrypoint":"core","exportName":"OpenClawPluginToolFactory","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":120,"sourcePath":"src/plugins/types.ts"}
384384
{"declaration":"export type PluginCommandContext = PluginCommandContext;","entrypoint":"core","exportName":"PluginCommandContext","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":965,"sourcePath":"src/plugins/types.ts"}
385-
{"declaration":"export type PluginInteractiveTelegramHandlerContext = PluginInteractiveTelegramHandlerContext;","entrypoint":"core","exportName":"PluginInteractiveTelegramHandlerContext","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1094,"sourcePath":"src/plugins/types.ts"}
385+
{"declaration":"export type PluginInteractiveTelegramHandlerContext = PluginInteractiveTelegramHandlerContext;","entrypoint":"core","exportName":"PluginInteractiveTelegramHandlerContext","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":1096,"sourcePath":"src/plugins/types.ts"}
386386
{"declaration":"export type PluginLogger = PluginLogger;","entrypoint":"core","exportName":"PluginLogger","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":59,"sourcePath":"src/plugins/types.ts"}
387387
{"declaration":"export type PluginRuntime = PluginRuntime;","entrypoint":"core","exportName":"PluginRuntime","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":54,"sourcePath":"src/plugins/runtime/types.ts"}
388388
{"declaration":"export type ProviderAugmentModelCatalogContext = ProviderAugmentModelCatalogContext;","entrypoint":"core","exportName":"ProviderAugmentModelCatalogContext","importSpecifier":"openclaw/plugin-sdk/core","kind":"type","recordType":"export","sourceLine":571,"sourcePath":"src/plugins/types.ts"}
@@ -428,14 +428,14 @@
428428
{"declaration":"export type AnyAgentTool = AnyAgentTool;","entrypoint":"plugin-entry","exportName":"AnyAgentTool","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":9,"sourcePath":"src/agents/tools/common.ts"}
429429
{"declaration":"export type MediaUnderstandingProviderPlugin = MediaUnderstandingProvider;","entrypoint":"plugin-entry","exportName":"MediaUnderstandingProviderPlugin","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":950,"sourcePath":"src/plugins/types.ts"}
430430
{"declaration":"export type OpenClawConfig = OpenClawConfig;","entrypoint":"plugin-entry","exportName":"OpenClawConfig","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":32,"sourcePath":"src/config/types.openclaw.ts"}
431-
{"declaration":"export type OpenClawPluginApi = OpenClawPluginApi;","entrypoint":"plugin-entry","exportName":"OpenClawPluginApi","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1311,"sourcePath":"src/plugins/types.ts"}
432-
{"declaration":"export type OpenClawPluginCommandDefinition = OpenClawPluginCommandDefinition;","entrypoint":"plugin-entry","exportName":"OpenClawPluginCommandDefinition","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1065,"sourcePath":"src/plugins/types.ts"}
431+
{"declaration":"export type OpenClawPluginApi = OpenClawPluginApi;","entrypoint":"plugin-entry","exportName":"OpenClawPluginApi","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1313,"sourcePath":"src/plugins/types.ts"}
432+
{"declaration":"export type OpenClawPluginCommandDefinition = OpenClawPluginCommandDefinition;","entrypoint":"plugin-entry","exportName":"OpenClawPluginCommandDefinition","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1067,"sourcePath":"src/plugins/types.ts"}
433433
{"declaration":"export type OpenClawPluginConfigSchema = OpenClawPluginConfigSchema;","entrypoint":"plugin-entry","exportName":"OpenClawPluginConfigSchema","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":88,"sourcePath":"src/plugins/types.ts"}
434-
{"declaration":"export type OpenClawPluginDefinition = OpenClawPluginDefinition;","entrypoint":"plugin-entry","exportName":"OpenClawPluginDefinition","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1293,"sourcePath":"src/plugins/types.ts"}
435-
{"declaration":"export type OpenClawPluginService = OpenClawPluginService;","entrypoint":"plugin-entry","exportName":"OpenClawPluginService","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1282,"sourcePath":"src/plugins/types.ts"}
436-
{"declaration":"export type OpenClawPluginServiceContext = OpenClawPluginServiceContext;","entrypoint":"plugin-entry","exportName":"OpenClawPluginServiceContext","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1274,"sourcePath":"src/plugins/types.ts"}
434+
{"declaration":"export type OpenClawPluginDefinition = OpenClawPluginDefinition;","entrypoint":"plugin-entry","exportName":"OpenClawPluginDefinition","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1295,"sourcePath":"src/plugins/types.ts"}
435+
{"declaration":"export type OpenClawPluginService = OpenClawPluginService;","entrypoint":"plugin-entry","exportName":"OpenClawPluginService","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1284,"sourcePath":"src/plugins/types.ts"}
436+
{"declaration":"export type OpenClawPluginServiceContext = OpenClawPluginServiceContext;","entrypoint":"plugin-entry","exportName":"OpenClawPluginServiceContext","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1276,"sourcePath":"src/plugins/types.ts"}
437437
{"declaration":"export type PluginCommandContext = PluginCommandContext;","entrypoint":"plugin-entry","exportName":"PluginCommandContext","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":965,"sourcePath":"src/plugins/types.ts"}
438-
{"declaration":"export type PluginInteractiveTelegramHandlerContext = PluginInteractiveTelegramHandlerContext;","entrypoint":"plugin-entry","exportName":"PluginInteractiveTelegramHandlerContext","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1094,"sourcePath":"src/plugins/types.ts"}
438+
{"declaration":"export type PluginInteractiveTelegramHandlerContext = PluginInteractiveTelegramHandlerContext;","entrypoint":"plugin-entry","exportName":"PluginInteractiveTelegramHandlerContext","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":1096,"sourcePath":"src/plugins/types.ts"}
439439
{"declaration":"export type PluginLogger = PluginLogger;","entrypoint":"plugin-entry","exportName":"PluginLogger","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":59,"sourcePath":"src/plugins/types.ts"}
440440
{"declaration":"export type ProviderAugmentModelCatalogContext = ProviderAugmentModelCatalogContext;","entrypoint":"plugin-entry","exportName":"ProviderAugmentModelCatalogContext","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":571,"sourcePath":"src/plugins/types.ts"}
441441
{"declaration":"export type ProviderAuthContext = ProviderAuthContext;","entrypoint":"plugin-entry","exportName":"ProviderAuthContext","importSpecifier":"openclaw/plugin-sdk/plugin-entry","kind":"type","recordType":"export","sourceLine":155,"sourcePath":"src/plugins/types.ts"}

extensions/firecrawl/src/firecrawl-search-provider.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ describe("firecrawl web search provider", () => {
1111
const { createFirecrawlWebSearchProvider } = await import("./firecrawl-search-provider.js");
1212

1313
const provider = createFirecrawlWebSearchProvider();
14+
if (!provider.applySelectionConfig) {
15+
throw new Error("Expected applySelectionConfig to be defined");
16+
}
1417
const applied = provider.applySelectionConfig({});
1518

1619
expect(provider.id).toBe("firecrawl");
@@ -24,6 +27,9 @@ describe("firecrawl web search provider", () => {
2427
const tool = provider.createTool({
2528
config: { test: true },
2629
} as never);
30+
if (!tool) {
31+
throw new Error("Expected tool definition");
32+
}
2733

2834
const result = await tool.execute({
2935
query: "openclaw docs",

extensions/googlechat/src/actions.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ describe("googlechat message actions", () => {
7777
messageName: "spaces/AAA/messages/msg-1",
7878
});
7979

80+
if (!googlechatMessageActions.handleAction) {
81+
throw new Error("Expected googlechatMessageActions.handleAction to be defined");
82+
}
8083
const result = await googlechatMessageActions.handleAction({
8184
action: "send",
8285
params: {
@@ -140,6 +143,9 @@ describe("googlechat message actions", () => {
140143
},
141144
]);
142145

146+
if (!googlechatMessageActions.handleAction) {
147+
throw new Error("Expected googlechatMessageActions.handleAction to be defined");
148+
}
143149
const result = await googlechatMessageActions.handleAction({
144150
action: "react",
145151
params: {

extensions/googlechat/src/monitor-webhook.test.ts

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,32 @@ function createResponse() {
3232
statusCode: 0,
3333
headers: {} as Record<string, string>,
3434
body: "",
35-
setHeader(name: string, value: string) {
36-
this.headers[name] = value;
35+
setHeader: (name: string, value: string) => {
36+
res.headers[name] = value;
3737
},
38-
end(payload?: string) {
39-
this.body = payload ?? "";
40-
return this;
38+
end: (payload?: string) => {
39+
res.body = payload ?? "";
40+
return res;
4141
},
42-
} as unknown as ServerResponse & {
43-
headers: Record<string, string>;
44-
body: string;
45-
};
42+
} as ServerResponse & { headers: Record<string, string>; body: string };
4643
return res;
4744
}
4845

4946
function installSimplePipeline(targets: unknown[]) {
5047
withResolvedWebhookRequestPipeline.mockImplementation(
51-
async ({ handle, req, res }: Record<string, unknown>) =>
48+
async ({
49+
handle,
50+
req,
51+
res,
52+
}: {
53+
handle: (input: {
54+
targets: unknown[];
55+
req: IncomingMessage;
56+
res: ServerResponse;
57+
}) => Promise<unknown>;
58+
req: IncomingMessage;
59+
res: ServerResponse;
60+
}) =>
5261
await handle({
5362
targets,
5463
req,

0 commit comments

Comments
 (0)