Skip to content

Conversation

@ShikherVerma
Copy link

Fixes #187

Changes

Building on the work in #180 I've added another flag to be able to configure the base directory.

Usecase

I want to create a github repo of srcbook files. Each file is a different prompt engineering experiment.
I need different members of the team to pull the latest experiments and share their work.

Possible enhancements

  • Currently each scrbook is stored as a random hash 30v2av4eee17m59dg2c29758to if this could be improved. For example with a date prefix, 2024-10-29-30v2av4eee17m59dg2c29758to that would help a bit.
  • The UI could have an option to group srcbooks into folders.

@nichochar
Copy link
Contributor

Hey @ShikherVerma thanks for the contribution. I'm looking at this but it's going to take a bit of time to QA and make sure things work as expected, since we make some assumptions about directories in different places.

I'm checking out your changes and looking at them on a local build before I approve this or come back with more comment.

Did you test this? If yes, what testing did you do?

@ShikherVerma
Copy link
Author

since we make some assumptions about directories in different places.

The codebase does include hardcoded references to .srcbooks

Did you test this? If yes, what testing did you do?

This commits ads a -b flag to change the base directory. I'm now using srcbook like this:

pnpm run start -- -b "/Users/shikher/projects/spt/prompts"

prompts folder is git tracked and shared with my team. Earlier all files were stored in home directory which is fine for personal use but not good for collaboration on these files.
With this change the .srcbooks folder is created in the prompts dir, not in home.

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.

Unable to set Base Directory

2 participants