feat: add optional resource annotations (#954)

Co-authored-by: Konstantin Konstantinov <konstantin@mach5technology.com>
This commit is contained in:
Vincent Horvath 2025-12-03 00:22:20 -05:00 • committed by GitHub
commit 4b5c25d592
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -656,6 +656,10 @@ const sdkTypeChecks = {
) => {
sdk = spec;
spec = sdk;
},
Annotations: (sdk: SDKTypes.Annotations, spec: SpecTypes.Annotations) => {
sdk = spec;
spec = sdk;
}
};
@ -667,10 +671,7 @@ const MISSING_SDK_TYPES = [
// These are inlined in the SDK:
'Role',
'Error', // The inner error object of a JSONRPCError
'URLElicitationRequiredError', // In the SDK, but with a custom definition
// These aren't supported by the SDK yet:
// TODO: Add definitions to the SDK
'Annotations'
'URLElicitationRequiredError' // In the SDK, but with a custom definition
];
function extractExportedTypes(source: string): string[] {