usdk icon indicating copy to clipboard operation
usdk copied to clipboard

usdk create without agent-dir specified creates a temporary directory in cwd

Open AbdurrehmanSubhani opened this issue 1 year ago • 1 comments

Steps to reproduce:

  • cd into a directory
  • create an agent using only "usdk create"
  • agent creation completes succesfully, though the path is not what is expected
  • a directory with random name is created inside which the agent is created

im assuming the additional guiding logs are present in the current USDK dev version, which help a lot in guiding the chat starting but without this a normal end user is left confused.

Complete logs:

the path in this example: Created agent at C:\Users\PC\Desktop\Upstreet Agents\agents\BT8secvK

PS C:\Users\PC\Desktop\Upstreet Agents> usdk create 

   ██  ██ ██████  ███████ ████████ ██████  ███████ ███████ ████████
   ██  ██ ██   ██ ██         ██    ██   ██ ██      ██         ██   
   ██  ██ ██████  ███████    ██    ██████  █████   █████      ██   
   ██  ██ ██           ██    ██    ██   ██ ██      ██         ██   
   ██████ ██      ███████    ██    ██   ██ ███████ ███████    ██ 
      


  Welcome to USDK's Agent Creation process.

  v0.0.87

  To exit, press CTRL+C twice.
  If you're customizing the code for this Agent, you may need to reload this chat every time you save.

  For more information on the Agent creation process, head over to https://docs.upstreet.ai/create-an-agent#step-2-complete-the-agent-interview
  

Starting the Interview process...

? What do you want your agent to do?
a farmer named Tom, you must complete the rest yourself
∙∙∙∙ [AGENT UPDATE] name → Tom
[AGENT UPDATE] bio → Tom is a seasoned farmer, deeply in tune with nature's cycles and the needs of his crops. He's patient, nurturing, and skilled in agricultural practices, always ready to share a story or some wisdom gleaned from years under the sun.
[AGENT UPDATE] description → Tom is the go-to guy for anyone seeking advice on agriculture or looking for the freshest produce around. His wealth of knowledge and approachable nature make him a valuable friend and mentor.
? Alright, planting the seeds of creativity here! Let's paint a picture of Tom.

Would our beloved farmer Tom have a specific region he's calling home—like the sun-kissed farmlands of Iowa or the rustic towns of Tuscany? It could flavor his description and home space.
[AGENT UPDATE] Avatar updated (preview): → 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

[AGENT UPDATE] Homespace updated (preview): → 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄


? Alright, planting the seeds of creativity here! Let's paint a picture of Tom.

Would our beloved farmer Tom have a specific region he's calling home—like the sun-kissed farmlands of Iowa or the rustic towns of Tuscany? It could flavor his description and home space.
ok cool finish this interview
? Awesome! Before we wrap up, do you think Tom should have any public-facing features, like text-to-speech to share his stories or perhaps specific items he might sell from his farm stand? Let me know if there's anything else to add or tweak!
yeah ok
∙∙∙∙ [AGENT UPDATE] name → Tom
[AGENT UPDATE] bio → Tom is a seasoned farmer, deeply in tune with nature's cycles and the needs of his crops. He's patient, nurturing, and skilled in agricultural practices, always ready to share a story or some wisdom gleaned from years under the sun.
[AGENT UPDATE] description → Tom is the go-to guy for anyone seeking advice on agriculture or looking for the freshest produce around. His wealth of knowledge and approachable nature make him a valuable friend and mentor.
[AGENT UPDATE] features
  → tts: [object Object]
Great! How about we give Tom a warm and friendly voice for text-to-speech? I think the "Scillia" voice would suit him nicely, giving that welcoming vibe to his storytelling. I'll wrap up with that unless there's something else you need!
Agent generated.
Name: Tom
Bio: Tom is a seasoned farmer, deeply in tune with nature's cycles and the needs of his crops. He's patient, nurturing, and skilled in agricultural practices, always ready to share a story or some wisdom gleaned from years under the sun.
Description: Tom is the go-to guy for anyone seeking advice on agriculture or looking for the freshest produce around. His wealth of knowledge and approachable nature make him a valuable friend and mentor.
Visual Description: a rugged middle-aged man with a sun-worn face, green flannel shirt, tan overalls, and a straw hat, holding a shovel
Preview URL: https://r2.upstreet.ai/avatars/e21a8270-a602-4b62-8bd1-7602a20208e2/image.jpg
Homespace Description: a picturesque farm with rolling fields of crops, a red barn, a few scattered apple trees, and a setting sun casting a golden hue across the landscape
Homespace URL: https://r2.upstreet.ai/avatars/ce4140dc-a932-4338-998e-cc05214f86ba/image.jpg
Features: tts
Building agent...
Agent built.
Copying files...
Installing dependencies...
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

added 511 packages, and audited 525 packages in 55s

74 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Initializing git repository...
Initialized empty Git repository in C:/Users/PC/Desktop/Upstreet Agents/agents/BT8secvK/.git/

Created agent at C:\Users\PC\Desktop\Upstreet Agents\agents\BT8secvK

To start a chat with your agent, run:
  usdk chat "C:\Users\PC\Desktop\Upstreet Agents\agents\BT8secvK"
To edit this agent again, run:
  usdk edit "C:\Users\PC\Desktop\Upstreet Agents\agents\BT8secvK"

To set up your agent with a git repository, run:
  git remote add origin https://github.com/USERNAME/REPOSITORY.git

To learn how to customize your agent with code, see the docs: https://docs.upstreet.ai/customize-your-agent

Happy building!

AbdurrehmanSubhani avatar Nov 12 '24 16:11 AbdurrehmanSubhani

This is intentional. What is the alternative? What path was expected?

avaer avatar Nov 12 '24 23:11 avaer