Skip to content

Commit ffdd512

Browse files
authored
Merge pull request #640 from Cai-Tang-www/add-ask-user-add-text
docs(www): 补充飞书接入必开权限清单与排障提示
2 parents 176cefb + 912c366 commit ffdd512

22 files changed

Lines changed: 2211 additions & 150 deletions

internal/cli/feishu_adapter_command_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ func (s *stubFeishuGatewayClient) BindStream(context.Context, string, string) er
222222
return nil
223223
}
224224
func (s *stubFeishuGatewayClient) Run(context.Context, string, string, string) error { return nil }
225+
func (s *stubFeishuGatewayClient) CancelRun(context.Context, string, string) (bool, error) {
226+
return true, nil
227+
}
225228
func (s *stubFeishuGatewayClient) ResolvePermission(context.Context, string, string) error {
226229
return nil
227230
}
@@ -245,6 +248,9 @@ func (stubFeishuMessenger) SendText(context.Context, string, string) error { ret
245248
func (stubFeishuMessenger) SendPermissionCard(context.Context, string, feishuadapter.PermissionCardPayload) (string, error) {
246249
return "", nil
247250
}
251+
func (stubFeishuMessenger) UpdatePendingPermissionCard(context.Context, string, feishuadapter.PermissionCardPayload) error {
252+
return nil
253+
}
248254
func (stubFeishuMessenger) UpdatePermissionCard(context.Context, string, feishuadapter.ResolvedPermissionCardPayload) error {
249255
return nil
250256
}

internal/cli/gateway_commands.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ func newGatewayServerCommand(use, short string, readWorkdir func(*cobra.Command)
126126
},
127127
}
128128

129-
cmd.Flags().StringVar(&options.ListenAddress, "listen", "", "gateway listen address (optional override)")
129+
cmd.Flags().StringVar(
130+
&options.ListenAddress,
131+
"listen",
132+
"",
133+
"gateway IPC listen address override (Windows named pipe / Unix socket path)",
134+
)
130135
cmd.Flags().StringVar(
131136
&options.HTTPAddress,
132137
"http-listen",

0 commit comments

Comments
 (0)