@@ -33,15 +33,6 @@ export class OrgOpenAuthoringBundle extends OrgOpenCommandBase<OrgOpenOutput> {
3333 ...OrgOpenCommandBase . flags ,
3434 'target-org' : Flags . requiredOrg ( ) ,
3535 'api-version' : Flags . orgApiVersion ( ) ,
36- 'api-name' : Flags . string ( {
37- summary : messages . getMessage ( 'flags.api-name.summary' ) ,
38- description : messages . getMessage ( 'flags.api-name.description' ) ,
39- } ) ,
40- version : Flags . string ( {
41- summary : messages . getMessage ( 'flags.version.summary' ) ,
42- description : messages . getMessage ( 'flags.version.description' ) ,
43- dependsOn : [ 'api-name' ] ,
44- } ) ,
4536 private : Flags . boolean ( {
4637 summary : messages . getMessage ( 'flags.private.summary' ) ,
4738 exclusive : [ 'url-only' , 'browser' ] ,
@@ -65,21 +56,6 @@ export class OrgOpenAuthoringBundle extends OrgOpenCommandBase<OrgOpenOutput> {
6556 this . org = flags [ 'target-org' ] ;
6657 this . connection = this . org . getConnection ( flags [ 'api-version' ] ) ;
6758
68- // Build the URL based on whether api-name is provided
69- let path : string ;
70- if ( flags [ 'api-name' ] ) {
71- const queryParams = new URLSearchParams ( {
72- projectName : flags [ 'api-name' ] ,
73- } ) ;
74- if ( flags . version ) {
75- queryParams . set ( 'projectVersionNumber' , flags . version ) ;
76- }
77- path = `AgentAuthoring/agentAuthoringBuilder.app#/project?${ queryParams . toString ( ) } ` ;
78- } else {
79- // Default to the list view
80- path = 'lightning/n/standard-AgentforceStudio' ;
81- }
82-
83- return this . openOrgUI ( flags , await this . org . getFrontDoorUrl ( path ) ) ;
59+ return this . openOrgUI ( flags , await this . org . getFrontDoorUrl ( 'lightning/n/standard-AgentforceStudio' ) ) ;
8460 }
8561}
0 commit comments