@@ -560,30 +560,6 @@ impl IntoV2 for crate::v1::CancelRequestNotification {
560560 }
561561}
562562
563- #[ cfg( feature = "unstable_cancel_request" ) ]
564- impl IntoV1 for super :: GeneralMethodNames {
565- type Output = crate :: v1:: GeneralMethodNames ;
566-
567- fn into_v1 ( self ) -> Result < Self :: Output > {
568- let Self { cancel_request } = self ;
569- Ok ( crate :: v1:: GeneralMethodNames {
570- cancel_request : cancel_request. into_v1 ( ) ?,
571- } )
572- }
573- }
574-
575- #[ cfg( feature = "unstable_cancel_request" ) ]
576- impl IntoV2 for crate :: v1:: GeneralMethodNames {
577- type Output = super :: GeneralMethodNames ;
578-
579- fn into_v2 ( self ) -> Result < Self :: Output > {
580- let Self { cancel_request } = self ;
581- Ok ( super :: GeneralMethodNames {
582- cancel_request : cancel_request. into_v2 ( ) ?,
583- } )
584- }
585- }
586-
587563#[ cfg( feature = "unstable_cancel_request" ) ]
588564impl IntoV1 for super :: ProtocolLevelNotification {
589565 type Output = crate :: v1:: ProtocolLevelNotification ;
@@ -1838,80 +1814,6 @@ impl IntoV2 for crate::v1::FileSystemCapabilities {
18381814 }
18391815}
18401816
1841- impl IntoV1 for super :: ClientMethodNames {
1842- type Output = crate :: v1:: ClientMethodNames ;
1843-
1844- fn into_v1 ( self ) -> Result < Self :: Output > {
1845- let Self {
1846- session_request_permission,
1847- session_update,
1848- fs_write_text_file,
1849- fs_read_text_file,
1850- terminal_create,
1851- terminal_output,
1852- terminal_release,
1853- terminal_wait_for_exit,
1854- terminal_kill,
1855- #[ cfg( feature = "unstable_elicitation" ) ]
1856- elicitation_create,
1857- #[ cfg ( feature = "unstable_elicitation" ) ]
1858- elicitation_complete,
1859- } = self ;
1860- Ok ( crate :: v1:: ClientMethodNames {
1861- session_request_permission : session_request_permission. into_v1 ( ) ?,
1862- session_update : session_update. into_v1 ( ) ?,
1863- fs_write_text_file : fs_write_text_file. into_v1 ( ) ?,
1864- fs_read_text_file : fs_read_text_file. into_v1 ( ) ?,
1865- terminal_create : terminal_create. into_v1 ( ) ?,
1866- terminal_output : terminal_output. into_v1 ( ) ?,
1867- terminal_release : terminal_release. into_v1 ( ) ?,
1868- terminal_wait_for_exit : terminal_wait_for_exit. into_v1 ( ) ?,
1869- terminal_kill : terminal_kill. into_v1 ( ) ?,
1870- #[ cfg( feature = "unstable_elicitation" ) ]
1871- elicitation_create : elicitation_create. into_v1 ( ) ?,
1872- #[ cfg( feature = "unstable_elicitation" ) ]
1873- elicitation_complete : elicitation_complete. into_v1 ( ) ?,
1874- } )
1875- }
1876- }
1877-
1878- impl IntoV2 for crate :: v1:: ClientMethodNames {
1879- type Output = super :: ClientMethodNames ;
1880-
1881- fn into_v2 ( self ) -> Result < Self :: Output > {
1882- let Self {
1883- session_request_permission,
1884- session_update,
1885- fs_write_text_file,
1886- fs_read_text_file,
1887- terminal_create,
1888- terminal_output,
1889- terminal_release,
1890- terminal_wait_for_exit,
1891- terminal_kill,
1892- #[ cfg( feature = "unstable_elicitation" ) ]
1893- elicitation_create,
1894- #[ cfg ( feature = "unstable_elicitation" ) ]
1895- elicitation_complete,
1896- } = self ;
1897- Ok ( super :: ClientMethodNames {
1898- session_request_permission : session_request_permission. into_v2 ( ) ?,
1899- session_update : session_update. into_v2 ( ) ?,
1900- fs_write_text_file : fs_write_text_file. into_v2 ( ) ?,
1901- fs_read_text_file : fs_read_text_file. into_v2 ( ) ?,
1902- terminal_create : terminal_create. into_v2 ( ) ?,
1903- terminal_output : terminal_output. into_v2 ( ) ?,
1904- terminal_release : terminal_release. into_v2 ( ) ?,
1905- terminal_wait_for_exit : terminal_wait_for_exit. into_v2 ( ) ?,
1906- terminal_kill : terminal_kill. into_v2 ( ) ?,
1907- #[ cfg( feature = "unstable_elicitation" ) ]
1908- elicitation_create : elicitation_create. into_v2 ( ) ?,
1909- #[ cfg( feature = "unstable_elicitation" ) ]
1910- elicitation_complete : elicitation_complete. into_v2 ( ) ?,
1911- } )
1912- }
1913- }
1914-
19151817impl IntoV1 for super :: AgentRequest {
19161818 type Output = crate :: v1:: AgentRequest ;
19171819
@@ -5256,200 +5158,6 @@ impl IntoV2 for crate::v1::McpCapabilities {
52565158 }
52575159}
52585160
5259- impl IntoV1 for super :: AgentMethodNames {
5260- type Output = crate :: v1:: AgentMethodNames ;
5261-
5262- fn into_v1 ( self ) -> Result < Self :: Output > {
5263- let Self {
5264- initialize,
5265- authenticate,
5266- #[ cfg( feature = "unstable_llm_providers" ) ]
5267- providers_list,
5268- #[ cfg ( feature = "unstable_llm_providers" ) ]
5269- providers_set,
5270- #[ cfg ( feature = "unstable_llm_providers" ) ]
5271- providers_disable,
5272- session_new,
5273- session_load,
5274- session_set_mode,
5275- session_set_config_option,
5276- session_prompt,
5277- session_cancel,
5278- #[ cfg ( feature = "unstable_session_model" ) ]
5279- session_set_model,
5280- session_list,
5281- #[ cfg ( feature = "unstable_session_fork" ) ]
5282- session_fork,
5283- session_resume,
5284- session_close,
5285- #[ cfg ( feature = "unstable_logout" ) ]
5286- logout,
5287- #[ cfg ( feature = "unstable_nes" ) ]
5288- nes_start,
5289- #[ cfg ( feature = "unstable_nes" ) ]
5290- nes_suggest,
5291- #[ cfg ( feature = "unstable_nes" ) ]
5292- nes_accept,
5293- #[ cfg ( feature = "unstable_nes" ) ]
5294- nes_reject,
5295- #[ cfg ( feature = "unstable_nes" ) ]
5296- nes_close,
5297- #[ cfg ( feature = "unstable_nes" ) ]
5298- document_did_open,
5299- #[ cfg ( feature = "unstable_nes" ) ]
5300- document_did_change,
5301- #[ cfg ( feature = "unstable_nes" ) ]
5302- document_did_close,
5303- #[ cfg ( feature = "unstable_nes" ) ]
5304- document_did_save,
5305- #[ cfg ( feature = "unstable_nes" ) ]
5306- document_did_focus,
5307- } = self ;
5308- Ok ( crate :: v1:: AgentMethodNames {
5309- initialize : initialize. into_v1 ( ) ?,
5310- authenticate : authenticate. into_v1 ( ) ?,
5311- #[ cfg( feature = "unstable_llm_providers" ) ]
5312- providers_list : providers_list. into_v1 ( ) ?,
5313- #[ cfg( feature = "unstable_llm_providers" ) ]
5314- providers_set : providers_set. into_v1 ( ) ?,
5315- #[ cfg( feature = "unstable_llm_providers" ) ]
5316- providers_disable : providers_disable. into_v1 ( ) ?,
5317- session_new : session_new. into_v1 ( ) ?,
5318- session_load : session_load. into_v1 ( ) ?,
5319- session_set_mode : session_set_mode. into_v1 ( ) ?,
5320- session_set_config_option : session_set_config_option. into_v1 ( ) ?,
5321- session_prompt : session_prompt. into_v1 ( ) ?,
5322- session_cancel : session_cancel. into_v1 ( ) ?,
5323- #[ cfg( feature = "unstable_session_model" ) ]
5324- session_set_model : session_set_model. into_v1 ( ) ?,
5325- session_list : session_list. into_v1 ( ) ?,
5326- #[ cfg( feature = "unstable_session_fork" ) ]
5327- session_fork : session_fork. into_v1 ( ) ?,
5328- session_resume : session_resume. into_v1 ( ) ?,
5329- session_close : session_close. into_v1 ( ) ?,
5330- #[ cfg( feature = "unstable_logout" ) ]
5331- logout : logout. into_v1 ( ) ?,
5332- #[ cfg( feature = "unstable_nes" ) ]
5333- nes_start : nes_start. into_v1 ( ) ?,
5334- #[ cfg( feature = "unstable_nes" ) ]
5335- nes_suggest : nes_suggest. into_v1 ( ) ?,
5336- #[ cfg( feature = "unstable_nes" ) ]
5337- nes_accept : nes_accept. into_v1 ( ) ?,
5338- #[ cfg( feature = "unstable_nes" ) ]
5339- nes_reject : nes_reject. into_v1 ( ) ?,
5340- #[ cfg( feature = "unstable_nes" ) ]
5341- nes_close : nes_close. into_v1 ( ) ?,
5342- #[ cfg( feature = "unstable_nes" ) ]
5343- document_did_open : document_did_open. into_v1 ( ) ?,
5344- #[ cfg( feature = "unstable_nes" ) ]
5345- document_did_change : document_did_change. into_v1 ( ) ?,
5346- #[ cfg( feature = "unstable_nes" ) ]
5347- document_did_close : document_did_close. into_v1 ( ) ?,
5348- #[ cfg( feature = "unstable_nes" ) ]
5349- document_did_save : document_did_save. into_v1 ( ) ?,
5350- #[ cfg( feature = "unstable_nes" ) ]
5351- document_did_focus : document_did_focus. into_v1 ( ) ?,
5352- } )
5353- }
5354- }
5355-
5356- impl IntoV2 for crate :: v1:: AgentMethodNames {
5357- type Output = super :: AgentMethodNames ;
5358-
5359- fn into_v2 ( self ) -> Result < Self :: Output > {
5360- let Self {
5361- initialize,
5362- authenticate,
5363- #[ cfg( feature = "unstable_llm_providers" ) ]
5364- providers_list,
5365- #[ cfg ( feature = "unstable_llm_providers" ) ]
5366- providers_set,
5367- #[ cfg ( feature = "unstable_llm_providers" ) ]
5368- providers_disable,
5369- session_new,
5370- session_load,
5371- session_set_mode,
5372- session_set_config_option,
5373- session_prompt,
5374- session_cancel,
5375- #[ cfg ( feature = "unstable_session_model" ) ]
5376- session_set_model,
5377- session_list,
5378- #[ cfg ( feature = "unstable_session_fork" ) ]
5379- session_fork,
5380- session_resume,
5381- session_close,
5382- #[ cfg ( feature = "unstable_logout" ) ]
5383- logout,
5384- #[ cfg ( feature = "unstable_nes" ) ]
5385- nes_start,
5386- #[ cfg ( feature = "unstable_nes" ) ]
5387- nes_suggest,
5388- #[ cfg ( feature = "unstable_nes" ) ]
5389- nes_accept,
5390- #[ cfg ( feature = "unstable_nes" ) ]
5391- nes_reject,
5392- #[ cfg ( feature = "unstable_nes" ) ]
5393- nes_close,
5394- #[ cfg ( feature = "unstable_nes" ) ]
5395- document_did_open,
5396- #[ cfg ( feature = "unstable_nes" ) ]
5397- document_did_change,
5398- #[ cfg ( feature = "unstable_nes" ) ]
5399- document_did_close,
5400- #[ cfg ( feature = "unstable_nes" ) ]
5401- document_did_save,
5402- #[ cfg ( feature = "unstable_nes" ) ]
5403- document_did_focus,
5404- } = self ;
5405- Ok ( super :: AgentMethodNames {
5406- initialize : initialize. into_v2 ( ) ?,
5407- authenticate : authenticate. into_v2 ( ) ?,
5408- #[ cfg( feature = "unstable_llm_providers" ) ]
5409- providers_list : providers_list. into_v2 ( ) ?,
5410- #[ cfg( feature = "unstable_llm_providers" ) ]
5411- providers_set : providers_set. into_v2 ( ) ?,
5412- #[ cfg( feature = "unstable_llm_providers" ) ]
5413- providers_disable : providers_disable. into_v2 ( ) ?,
5414- session_new : session_new. into_v2 ( ) ?,
5415- session_load : session_load. into_v2 ( ) ?,
5416- session_set_mode : session_set_mode. into_v2 ( ) ?,
5417- session_set_config_option : session_set_config_option. into_v2 ( ) ?,
5418- session_prompt : session_prompt. into_v2 ( ) ?,
5419- session_cancel : session_cancel. into_v2 ( ) ?,
5420- #[ cfg( feature = "unstable_session_model" ) ]
5421- session_set_model : session_set_model. into_v2 ( ) ?,
5422- session_list : session_list. into_v2 ( ) ?,
5423- #[ cfg( feature = "unstable_session_fork" ) ]
5424- session_fork : session_fork. into_v2 ( ) ?,
5425- session_resume : session_resume. into_v2 ( ) ?,
5426- session_close : session_close. into_v2 ( ) ?,
5427- #[ cfg( feature = "unstable_logout" ) ]
5428- logout : logout. into_v2 ( ) ?,
5429- #[ cfg( feature = "unstable_nes" ) ]
5430- nes_start : nes_start. into_v2 ( ) ?,
5431- #[ cfg( feature = "unstable_nes" ) ]
5432- nes_suggest : nes_suggest. into_v2 ( ) ?,
5433- #[ cfg( feature = "unstable_nes" ) ]
5434- nes_accept : nes_accept. into_v2 ( ) ?,
5435- #[ cfg( feature = "unstable_nes" ) ]
5436- nes_reject : nes_reject. into_v2 ( ) ?,
5437- #[ cfg( feature = "unstable_nes" ) ]
5438- nes_close : nes_close. into_v2 ( ) ?,
5439- #[ cfg( feature = "unstable_nes" ) ]
5440- document_did_open : document_did_open. into_v2 ( ) ?,
5441- #[ cfg( feature = "unstable_nes" ) ]
5442- document_did_change : document_did_change. into_v2 ( ) ?,
5443- #[ cfg( feature = "unstable_nes" ) ]
5444- document_did_close : document_did_close. into_v2 ( ) ?,
5445- #[ cfg( feature = "unstable_nes" ) ]
5446- document_did_save : document_did_save. into_v2 ( ) ?,
5447- #[ cfg( feature = "unstable_nes" ) ]
5448- document_did_focus : document_did_focus. into_v2 ( ) ?,
5449- } )
5450- }
5451- }
5452-
54535161impl IntoV1 for super :: ClientRequest {
54545162 type Output = crate :: v1:: ClientRequest ;
54555163
0 commit comments