Skip to content

Commit 53beb5d

Browse files
Merge main into feature/auto-debug
2 parents de8dbb4 + 49867d7 commit 53beb5d

6 files changed

Lines changed: 1055 additions & 52 deletions

File tree

server/aws-lsp-codewhisperer/src/language-server/netTransform/atxModels.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,18 @@ export interface AtxGetTransformInfoRequest extends ExecuteCommandParams {
118118
SolutionRootPath: string
119119
GetCheckpoints?: boolean
120120
useOrchestratorAgent?: boolean
121+
// Beam-to-IDE: when true, this job was beamed to the IDE and its source is
122+
// ALREADY the transformed output. The prior transform job's per-step
123+
// checkpoint diffs must NOT be re-applied (they're baked into the beamed
124+
// source, and their checkpoint folders aren't in the beam bundle) — doing so
125+
// produces "Checkpoint folder not available for step" + DiffApplyFailed and
126+
// stalls the LBV loop. When set, getTransformInfo skips the completed-step
127+
// artifact download/apply pass and only surfaces NEW LBV-round diffs.
128+
IsBeam?: boolean
129+
// Beam-to-IDE: comma-separated plan-step ids of the LOADED beamed repo's subtree. Used to
130+
// select THIS repo's local-build-verification HITL instead of the first LBV HITL in the list
131+
// (which may be a sibling's, shadowing the loaded repo's own). Empty/absent = first-match.
132+
beamScopeStepIds?: string
121133
}
122134

123135
export interface AtxGetTransformInfoResponse {

server/aws-lsp-codewhisperer/src/language-server/netTransform/atxNetTransformServer.ts

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const AtxGetJobDashboardCommand = 'aws/atxTransform/getJobDashboard'
4747
const AtxGetJobReportCommand = 'aws/atxTransform/getJobReport'
4848
const AtxUploadCustomPlanCommand = 'aws/atxTransform/uploadCustomPlan'
4949
const AtxLoadOlderWorklogsCommand = 'aws/atxTransform/loadOlderWorklogs'
50+
// Beam to IDE
51+
const AtxListBeamedReposCommand = 'aws/atxTransform/listBeamedRepos'
52+
const AtxDownloadBeamArtifactCommand = 'aws/atxTransform/downloadBeamArtifact'
5053

5154
export 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

Comments
 (0)