Hi,
At the moment, I'm working on a project that is orchestrated by the pnpm, so I have a package.json in all services.
However, the agent-related service is written in Python, so it has a pyproject.toml (uv) as well. However, when I try to run
or
it sees the package.json and assumes it's a Node.js service. Then failing since:
package @livekit/agents not found in any project files
If I simply delete/rename package.json, everything works fine. However, this isn't an option for me due to the existing project architecture.
The CLI does not provide an option to manually select the project type; instead, it defines it on its own.
|
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir)) |
|
if err != nil { |
|
return fmt.Errorf("unable to determine agent language: %w, please navigate to a directory containing an agent written in a supported language", err) |
|
} |
|
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType))) |
|
func DetectProjectType(dir fs.FS) (ProjectType, error) { |
It would be very helpful if anyone could add at least --language flag to the deploy command with python or node options.
Thanks in advance!
Hi,
At the moment, I'm working on a project that is orchestrated by the pnpm, so I have a package.json in all services.
However, the agent-related service is written in Python, so it has a pyproject.toml (uv) as well. However, when I try to run
or
it sees the package.json and assumes it's a Node.js service. Then failing since:
If I simply delete/rename package.json, everything works fine. However, this isn't an option for me due to the existing project architecture.
The CLI does not provide an option to manually select the project type; instead, it defines it on its own.
livekit-cli/cmd/lk/agent.go
Lines 543 to 547 in c18eb7a
livekit-cli/pkg/agentfs/detect.go
Line 75 in c18eb7a
It would be very helpful if anyone could add at least
--languageflag to thedeploycommand withpythonornodeoptions.Thanks in advance!