@@ -17,7 +17,7 @@ import { oauthProviderExtension } from './services/oauth-provider';
1717import { platformApiExtension } from './services/platform' ;
1818import type { SecretDemands , SecretFulfillments } from './services/secrets' ;
1919import { secretsExtension } from './services/secrets' ;
20- import type { FormDemands , FormFulfillments } from './ui/form' ;
20+ import type { FormFulfillments } from './ui/form' ;
2121import { formExtension } from './ui/form' ;
2222import { oauthRequestExtension } from './ui/oauth' ;
2323import type { SettingsDemands , SettingsFulfillments } from './ui/settings' ;
@@ -31,7 +31,7 @@ export interface Fulfillments {
3131 oauth : ( demand : OAuthDemands ) => Promise < OAuthFulfillments > ;
3232 settings : ( demand : SettingsDemands ) => Promise < SettingsFulfillments > ;
3333 secrets : ( demand : SecretDemands ) => Promise < SecretFulfillments > ;
34- form : ( demand : FormDemands ) => Promise < FormFulfillments | null > ;
34+ form : ( ) => Promise < FormFulfillments | null > ;
3535 oauthRedirectUri : ( ) => string | null ;
3636 getContextToken : ( ) => ContextToken ;
3737}
@@ -92,11 +92,9 @@ export const handleAgentCard = (agentCard: { capabilities: AgentCapabilities })
9292 fulfilledMetadata = fulfillSecretDemand ( fulfilledMetadata , await fulfillments . secrets ( secretDemands ) ) ;
9393 }
9494
95- if ( formDemands ) {
96- const formFulfillment = await fulfillments . form ( formDemands ) ;
97- if ( formFulfillment ) {
98- fulfilledMetadata = fulfillFormDemand ( fulfilledMetadata , formFulfillment ) ;
99- }
95+ const formFulfillment = await fulfillments . form ( ) ;
96+ if ( formFulfillment ) {
97+ fulfilledMetadata = fulfillFormDemand ( fulfilledMetadata , formFulfillment ) ;
10098 }
10199
102100 const oauthRedirectUri = fulfillments . oauthRedirectUri ( ) ;
0 commit comments