Just ran an experiment with Bike 2’s extension API.
I opened the Bike Extension Kit in VS Code. Opened the AI chat sidebar, selected the main.ts file in the tutorial, and gave it three prompts:
Prompt: Can you read in all the files in api?
I’m not sure if that prompt was necessary, but it churned for quite a while doing something.
Prompt: I want to create a live search feature. The user should click item in the sidebar. That should open a sheet with a search field. When the user types in the search field the sheet should post a message back to the app context. The app context should perform the search. And then post the results back to the sheet. The sheet should display them.
Prompt: Add a kanban item to the sidebar. When clicked it should show a sheet. The sheet should display a clean and simple kanban board. The columns should come from the top level rows in the outline. The rows should come from the direct children of those rows. I should be able to drag and drop items between the columns. When I do that the outline should also update to reflect those changes.
And those next two prompts were I think all I typed. No correcting or refining. This is what got loaded into Bike 10-15 minutes later (generation takes quite a while):
The results are kinda amazing. They don’t look great, but they basically work. Pretty good way to explore the API and see how you might get started doing something.