Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions cmd/lk/simulate.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,20 @@ var simulateCommand = &cli.Command{
// `list` and `cancel` never hit the API-key project gate.
//
// TODO(DEVX-577): unify text/audio/view/export with --experimental-auth. For
// now they stay API-key only (loadProjectDetails rejects --experimental-auth).
// now they stay API-key only (requireProject rejects --experimental-auth).
// Blockers: a spawned agent needs API keys to register as a worker, and the
// Public API can't issue them; it also lacks a confirm-source-upload op, and
// its create has no audio-impairment or CI fields. Live-agent mode
// (--agent-name + --scenarios) could work over the Public API today, but its
// oapi run type would need converting to the livekit.SimulationRun the TUI,
// CI report and export consume.
func loadSimulateProject(ctx context.Context, cmd *cli.Command) (context.Context, error) {
pc, err := loadProjectDetails(cmd)
if err != nil {
if _, err := requireProject(ctx, cmd); err != nil {
return nil, err
}
simulateProjectConfig = pc
simulateProjectConfig = project
if !cmd.IsSet("server-url") {
if api := cloudAPIURL(pc.URL); api != "" {
if api := cloudAPIURL(project.URL); api != "" {
serverURL = api
}
}
Expand Down
Loading