arrdem / katamari

Roll up all your software into artifacts!
67 stars 4 forks source link

Sort out kinds of responses #2

Closed arrdem closed 5 years ago

arrdem commented 5 years ago

At present, Katamari can accept requests, process them and produce responses. Which is great. Unfortunately there’s some Content-Type confusion if not outright conflation and it’s not clear how the server fits into the overall Katamari model.

Say one wanted to implement a katamari repl task. How would it work? Where would it live? You’d need the server to build a classpath, and then you’d boot (or connect to) a JVM… but what process controls the user’s terminal? How much of that complexity becomes baked into kat script?

Offloading tasks to the server is great, but it seems like kat needs to be a framework like git which allows for “tasks” to be defined as additional scripts.

arrdem commented 5 years ago

edba288 had some steps towards this, in that the kat script now exposes flags which let the user choose how the response should be formatted. But it's still less than ideal.

arrdem commented 5 years ago

Fixed in 13034aec with the intents refactor.