Skip to content

Commit

Permalink
fix: list api specs (#11239)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqizhou77 authored Apr 1, 2024
1 parent b714b9a commit f4324c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/server/src/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ export interface IServerConnection {
options: TestToolInstallOptions & { correlationId: string },
token: CancellationToken
) => Promise<Result<DependencyStatusRPC, FxError>>;
listPluginApiSpecs: (
inputs: Inputs,
token: CancellationToken
) => Promise<Result<string[], FxError>>;
}

/**
Expand Down
1 change: 1 addition & 0 deletions packages/server/src/serverConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export default class ServerConnection implements IServerConnection {
this.loadOpenAIPluginManifestRequest.bind(this),
this.listOpenAPISpecOperationsRequest.bind(this),
this.checkAndInstallTestTool.bind(this),
this.listPluginApiSpecs.bind(this),
].forEach((fn) => {
/// fn.name = `bound ${functionName}`
connection.onRequest(`${ServerConnection.namespace}/${fn.name.split(" ")[1]}`, fn);
Expand Down

0 comments on commit f4324c7

Please sign in to comment.