Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add importing from github #395

Closed
wants to merge 11 commits into from
Closed

Conversation

kochrt
Copy link

@kochrt kochrt commented Nov 24, 2024

github.import.mp4

Fixes #323

Similar to how bolt.new does it, you can either append a github url to the path (localhost:5174/github.com/owner/repo) or you can import via dialog. Downloads files client side.

Works for public repositories.

@thecodacus
Copy link
Collaborator

Why does it utilise the action runner and have updated section in artifact component when this does not use any actions provided by the llm

plus does it provide the context to llm on what has been imported?

@kochrt
Copy link
Author

kochrt commented Nov 24, 2024

Thanks for taking a look @thecodacus - I was trying to get the same effect bolt.new has when importing a project (it shows up as an artifact in chat) but never really got it. I'll revert those parts.

does it provide context to llm on what has been imported

No... how do I do that?

@kustomzone
Copy link

See @burgil's fork

#390 (comment)

@kochrt
Copy link
Author

kochrt commented Nov 24, 2024

👍 I'll take a look

@cetinmustafa83
Copy link

https://github.com/FurkannM/bolt.new-extended

I found someone who added features like adding files, should we clone their features?

@kustomzone
Copy link

I found someone who added features like adding files, should we clone their features?

It's been pending for a month.
I added Files and Folder separately as it let's one choose a specific collection of files.
But it's currently missing the context hack that @burgil added yesterday, which is required to persist the imports.

@wonderwhy-er
Copy link
Collaborator

I just submited PR for review that allows exporting/importing chats.
In my list next is importing folders to start a new chat.
Will probably do a PR in the morning.

After that its github work unless someone does a good one before.
But without foundational work to import folders jumping to github imports is larger jump.

@wonderwhy-er
Copy link
Collaborator

We do need to start to put in work of working with github APIs
I proposed elsewhere to introduce server side calls that allow oauth with github and store tokens in JWT tokens.
So we can have users logged in and pulling and pushing from github with their own account.
Without us requiring the to introduce a server side database/persistance

Here is thread on community with more details https://thinktank.ottomator.ai/t/idea-for-github-oauth-access/624

@thecodacus
Copy link
Collaborator

thecodacus commented Nov 24, 2024

Thanks for taking a look @thecodacus - I was trying to get the same effect bolt.new has when importing a project (it shows up as an artifact in chat) but never really got it. I'll revert those parts.

does it provide context to llm on what has been imported

No... how do I do that?

I think this PR needs some of clean up,

to put it into the chat use append function provided by the useChat hook and use assistant role in the message that will trigger the message parser

@Toddyclipsgg
Copy link

@kochrt How do I put it in my repository?

@dustinwloring1988
Copy link
Collaborator

I agree with @thecodacus also this now has conflicts can you please update this?

@dustinwloring1988 dustinwloring1988 added enhancement New feature or request question Further information is requested WIP Work In Progress labels Dec 2, 2024
@thecodacus thecodacus closed this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested WIP Work In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to import github repository similar to the cloud environment
7 participants