Skip to content

Conversation

@real-danm
Copy link
Contributor

  • more explicit path'ing and workdir for agent hosting commands
  • add the subdomain project lookup to support agent hosting toml
  • for agent hosting list command, add a project-id param to allow listing agents on projects other than the default project

…ain project lookup to support agent hosting toml
@ilo-nanpa
Copy link

ilo-nanpa bot commented Mar 24, 2025

it seems like you haven't added any nanpa changeset files to this PR.

if this pull request includes changes to code, make sure to add a changeset, by writing a file to .nanpa/<unique-name>.kdl:

minor type="added" "Introduce frobnication algorithm"

refer to the manpage for more information.

cmd/lk/agent.go Outdated
Comment on lines 207 to 211
&cli.StringFlag{
Name: "project",
Usage: "Project to list agents for",
Required: false,
},
Copy link
Member

@rektdeckard rektdeckard Mar 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already a "persistent" flag, so it is valid on every command and its subcommands, and not necessary to redefine here. See: https://github.com/livekit/livekit-cli/blob/main/cmd/lk/utils.go#L65-L68

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if you're adding it here to override the Usage string to indicate that the project name can be ANY project, not just those you've added to the CLI, this is fine! Or we can just come up with a more general helpstring that suits both.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right.. good call, will remove the duplicate.

@real-danm real-danm merged commit ad4c964 into main Mar 25, 2025
6 checks passed
@real-danm real-danm deleted the dan/agent-project-selector branch March 25, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants