adk-js icon indicating copy to clipboard operation
adk-js copied to clipboard

Add support to create a new agent through NPX

Open nohe427 opened this issue 4 months ago • 9 comments

Fixes #24

Adds command create to the devtools package.

Should work in this way: npx @google/adk-devtools create my-agent

nohe427 avatar Dec 18 '25 06:12 nohe427

I am having a little trouble manually testing this as I am getting errors when trying to compile @google/adk in the project.

node version v25.2.1 device: Linux fedora 6.17.11-300.fc43.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec 8 23:20:36 UTC 2025 x86_64 GNU/Linux

nohe427 avatar Dec 18 '25 06:12 nohe427

Nevermind. Got it working. Is a problem with node25. switched to node24

nohe427 avatar Dec 18 '25 07:12 nohe427

@kalenkevich - I believe, I have made the proposed changes. PTAL?

nohe427 avatar Dec 18 '25 18:12 nohe427

Updated based on feedback

nohe427 avatar Dec 18 '25 22:12 nohe427

Hey, just an FYI, I did add the package.json to be written directly and the TSCONFIG to be written directly so a new user can just call npm run web to get the web ui. There was some extra things that needed to be done with the default package and TSConfig that I think made a bad experience

nohe427 avatar Dec 18 '25 23:12 nohe427

Resolved all previous comments. Thank you for the quick replies!

nohe427 avatar Dec 18 '25 23:12 nohe427

Just as a quick note, I use symbol to capture CTRL+C. If there is a different prompt and response library that I should be using or is preferred, please let me know

nohe427 avatar Dec 19 '25 00:12 nohe427

Just finished changes. LMK

nohe427 avatar Dec 19 '25 01:12 nohe427

done!

nohe427 avatar Dec 19 '25 01:12 nohe427