Open tarasglek opened 9 months ago
The import stuff is fairly tightly bound to what happens in CloudFlare; I'm not sure how you properly fork that into val.town. However, why don't we add a /valtown ...
or /exec
command which can be very val.town specific, and do what you want.
It's a client-side change
Here is my wip scraper: https://www.val.town/v/taras/scrape
Here is my complete idea:
Alternatively..perhaps we can just do this with a completion endpoint and do all this magic on serverside..eg, intercept urls, etc
I think the cool part of chatcraft is that it's a choose-your-own-adventure chat-dev environment. Currently the way we implement import doesn't quite match the cool dev ux elsewhere.
I find our import command finds sometimes and I have no recourse. I think if we redo it via valtown, we could get a link to the failing val and an option to fork and change it.
"Import command failed, feel free to fork it and fix it via /set import" where command could be a link to a val.town func.
I really like how val.town matches our lightweight/interactive code-dev values.