Skip to content

Commit 6d7b32b

Browse files
committed
Plugins: drop duplicate callback replay artifacts
1 parent bc5acef commit 6d7b32b

File tree

7 files changed

+1
-20
lines changed

7 files changed

+1
-20
lines changed

extensions/lobster/src/lobster-tool.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ function fakeApi(overrides: Partial<OpenClawPluginApi> = {}): OpenClawPluginApi
5353
registerHook() {},
5454
registerHttpRoute() {},
5555
registerCommand() {},
56-
onConversationBindingResolved() {},
5756
registerContextEngine() {},
5857
on() {},
5958
resolvePath: (p) => p,

src/auto-reply/reply/route-reply.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ const createRegistry = (channels: PluginRegistry["channels"]): PluginRegistry =>
101101
services: [],
102102
conversationBindingResolvedHandlers: [],
103103
diagnostics: [],
104-
conversationBindingResolvedHandlers: [],
105104
});
106105

107106
const createMSTeamsOutbound = (): ChannelOutboundAdapter => ({

src/gateway/server-plugins.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const createRegistry = (diagnostics: PluginDiagnostic[]): PluginRegistry => ({
6060
services: [],
6161
conversationBindingResolvedHandlers: [],
6262
diagnostics,
63-
conversationBindingResolvedHandlers: [],
6463
});
6564

6665
type ServerPluginsModule = typeof import("./server-plugins.js");

src/gateway/test-helpers.mocks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ const createStubPluginRegistry = (): PluginRegistry => ({
157157
commands: [],
158158
conversationBindingResolvedHandlers: [],
159159
diagnostics: [],
160-
conversationBindingResolvedHandlers: [],
161160
});
162161

163162
const hoisted = vi.hoisted(() => ({

src/plugins/conversation-binding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ function decodeCustomIdValue(value: string): string {
531531

532532
export function buildPluginBindingApprovalCustomId(
533533
approvalId: string,
534-
decision: PluginBindingApprovalDecisionWithDeny,
534+
decision: PluginBindingApprovalDecision,
535535
): string {
536536
const decisionCode = decision === "allow-once" ? "o" : decision === "allow-always" ? "a" : "d";
537537
return `${PLUGIN_BINDING_CUSTOM_ID_PREFIX}:${encodeCustomIdValue(approvalId)}:${decisionCode}`;

src/plugins/registry.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -792,20 +792,6 @@ export function createPluginRegistry(registryParams: PluginRegistryParams) {
792792
});
793793
};
794794

795-
const registerConversationBindingResolvedHandler = (
796-
record: PluginRecord,
797-
handler: (event: PluginConversationBindingResolvedEvent) => void | Promise<void>,
798-
) => {
799-
registry.conversationBindingResolvedHandlers.push({
800-
pluginId: record.id,
801-
pluginName: record.name,
802-
pluginRoot: record.rootDir,
803-
handler,
804-
source: record.source,
805-
rootDir: record.rootDir,
806-
});
807-
};
808-
809795
const registerTypedHook = <K extends PluginHookName>(
810796
record: PluginRecord,
811797
hookName: K,

src/test-utils/channel-plugins.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const createTestRegistry = (channels: TestChannelRegistration[] = []): Pl
3737
commands: [],
3838
conversationBindingResolvedHandlers: [],
3939
diagnostics: [],
40-
conversationBindingResolvedHandlers: [],
4140
});
4241

4342
export const createChannelTestPluginBase = (params: {

0 commit comments

Comments
 (0)