@@ -47,6 +47,9 @@ const AtxGetJobDashboardCommand = 'aws/atxTransform/getJobDashboard'
4747const AtxGetJobReportCommand = 'aws/atxTransform/getJobReport'
4848const AtxUploadCustomPlanCommand = 'aws/atxTransform/uploadCustomPlan'
4949const AtxLoadOlderWorklogsCommand = 'aws/atxTransform/loadOlderWorklogs'
50+ // Beam to IDE
51+ const AtxListBeamedReposCommand = 'aws/atxTransform/listBeamedRepos'
52+ const AtxDownloadBeamArtifactCommand = 'aws/atxTransform/downloadBeamArtifact'
5053
5154export const AtxNetTransformServerToken =
5255 ( ) : Server =>
@@ -170,12 +173,13 @@ export const AtxNetTransformServerToken =
170173 return await atxTransformHandler . uploadPackages ( request )
171174 }
172175 case AtxSendMessageCommand : {
173- const { workspaceId, jobId, text, skipPolling } = params as any
176+ const { workspaceId, jobId, text, skipPolling, beamStepId } = params as any
174177 return await atxTransformHandler . sendMessage ( {
175178 workspaceId,
176179 jobId,
177180 text,
178181 skipPolling,
182+ beamStepId,
179183 } )
180184 }
181185 case AtxListMessagesCommand : {
@@ -269,6 +273,32 @@ export const AtxNetTransformServerToken =
269273 request . nextToken
270274 )
271275 }
276+ // ---- Beam to IDE ----
277+ case AtxListBeamedReposCommand : {
278+ // PascalCase params/return to match the C# ExecuteCommandParams convention.
279+ const { WorkspaceId, ParentJobId } = params as any
280+ if ( ! WorkspaceId || ! ParentJobId ) {
281+ throw new Error ( 'WorkspaceId and ParentJobId are required for listBeamedRepos' )
282+ }
283+ const repos = await atxTransformHandler . listBeamedRepos ( WorkspaceId , ParentJobId )
284+ return { Repos : repos }
285+ }
286+ case AtxDownloadBeamArtifactCommand : {
287+ // PascalCase params to match the C# ExecuteCommandParams serialization
288+ // convention used by every other C#-backed ATX command (e.g. downloadArtifact).
289+ const { WorkspaceId, ParentJobId, BeamArtifactId, DestDir } = params as any
290+ if ( ! WorkspaceId || ! ParentJobId || ! BeamArtifactId || ! DestDir ) {
291+ throw new Error (
292+ 'WorkspaceId, ParentJobId, BeamArtifactId and DestDir are required for downloadBeamArtifact'
293+ )
294+ }
295+ return await atxTransformHandler . downloadBeamArtifact (
296+ WorkspaceId ,
297+ ParentJobId ,
298+ BeamArtifactId ,
299+ DestDir
300+ )
301+ }
272302 default : {
273303 throw new Error ( `Unknown ATX FES command: ${ params . command } ` )
274304 }
@@ -311,6 +341,8 @@ export const AtxNetTransformServerToken =
311341 AtxGetJobReportCommand ,
312342 AtxUploadCustomPlanCommand ,
313343 AtxLoadOlderWorklogsCommand ,
344+ AtxListBeamedReposCommand ,
345+ AtxDownloadBeamArtifactCommand ,
314346 ] ,
315347 } ,
316348 } ,
0 commit comments