@@ -201,6 +201,23 @@ export const createAgentsCommand = (program: BaseCommand) => {
201201 await agentsRevert ( id , options , command )
202202 } )
203203
204+ program
205+ . command ( 'agents:archive' )
206+ . argument ( '<id>' , 'agent run ID' )
207+ . description ( 'Archive an agent run' )
208+ . option ( '-y, --yes' , 'skip confirmation prompt' )
209+ . option ( '--json' , 'output result as JSON' )
210+ . option ( '--project <project>' , 'project ID or name (if not in a linked directory)' )
211+ . hook ( 'preAction' , requiresSiteInfoWithProject )
212+ . addExamples ( [
213+ 'netlify agents:archive 60c7c3b3e7b4a0001f5e4b3a' ,
214+ 'netlify agents:archive 60c7c3b3e7b4a0001f5e4b3a --yes' ,
215+ ] )
216+ . action ( async ( id : string , options : OptionValues , command : BaseCommand ) => {
217+ const { agentsArchive } = await import ( './agents-archive.js' )
218+ await agentsArchive ( id , options , command )
219+ } )
220+
204221 program
205222 . command ( 'agents:redeploy' )
206223 . argument ( '<id>' , 'agent run ID' )
@@ -218,6 +235,20 @@ export const createAgentsCommand = (program: BaseCommand) => {
218235 await agentsRedeploy ( id , options , command )
219236 } )
220237
238+ program
239+ . command ( 'agents:rename' )
240+ . argument ( '<id>' , 'agent run ID' )
241+ . argument ( '<title>' , 'new title for the agent run' )
242+ . description ( 'Rename an agent run' )
243+ . option ( '--json' , 'output result as JSON' )
244+ . option ( '--project <project>' , 'project ID or name (if not in a linked directory)' )
245+ . hook ( 'preAction' , requiresSiteInfoWithProject )
246+ . addExamples ( [ 'netlify agents:rename 60c7c3b3e7b4a0001f5e4b3a "Add dark mode toggle"' ] )
247+ . action ( async ( id : string , title : string , options : OptionValues , command : BaseCommand ) => {
248+ const { agentsRename } = await import ( './agents-rename.js' )
249+ await agentsRename ( id , title , options , command )
250+ } )
251+
221252 program
222253 . command ( 'agents:sync' )
223254 . argument ( '<id>' , 'agent run ID' )
0 commit comments