File tree Expand file tree Collapse file tree 7 files changed +1
-20
lines changed
Expand file tree Collapse file tree 7 files changed +1
-20
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ const createRegistry = (channels: PluginRegistry["channels"]): PluginRegistry =>
101101 services : [ ] ,
102102 conversationBindingResolvedHandlers : [ ] ,
103103 diagnostics : [ ] ,
104- conversationBindingResolvedHandlers : [ ] ,
105104} ) ;
106105
107106const createMSTeamsOutbound = ( ) : ChannelOutboundAdapter => ( {
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ const createRegistry = (diagnostics: PluginDiagnostic[]): PluginRegistry => ({
6060 services : [ ] ,
6161 conversationBindingResolvedHandlers : [ ] ,
6262 diagnostics,
63- conversationBindingResolvedHandlers : [ ] ,
6463} ) ;
6564
6665type ServerPluginsModule = typeof import ( "./server-plugins.js" ) ;
Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ const createStubPluginRegistry = (): PluginRegistry => ({
157157 commands : [ ] ,
158158 conversationBindingResolvedHandlers : [ ] ,
159159 diagnostics : [ ] ,
160- conversationBindingResolvedHandlers : [ ] ,
161160} ) ;
162161
163162const hoisted = vi . hoisted ( ( ) => ( {
Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ function decodeCustomIdValue(value: string): string {
531531
532532export 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 } ` ;
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ export const createTestRegistry = (channels: TestChannelRegistration[] = []): Pl
3737 commands : [ ] ,
3838 conversationBindingResolvedHandlers : [ ] ,
3939 diagnostics : [ ] ,
40- conversationBindingResolvedHandlers : [ ] ,
4140} ) ;
4241
4342export const createChannelTestPluginBase = ( params : {
You can’t perform that action at this time.
0 commit comments