Open rolandtritsch opened 3 hours ago
You can see some of the new protocol in action by running a test completion with the latest sm-agent ...
~/.supermaven/binary/v26/sm-agent test "Hello"
SM-MESSAGE {"kind":"metadata","stateId":"","items":null,"dustStrings":[",",".",")","]","{","}","\u003e","=",";",":","\"","'","`","?","\u003c/div\u003e","\u003c/span\u003e","\u003c/p\u003e","\u003c/h1\u003e","\u003c/h2\u003e","\u003c/h3\u003e","\u003c/h4\u003e","\u003c/h5\u003e","\u003c/h6\u003e","\u003c/li\u003e","\u003c/ul\u003e","\u003c/ol\u003e","\u003c/table\u003e","\u003c/tr\u003e","\u003c/td\u003e","\u003c/th\u003e","\u003c/tbody\u003e","\u003c/thead\u003e","\u003c/body\u003e","\u003c/html\u003e","\u003c/head\u003e","\u003c/title\u003e","\u003c/script\u003e","\u003c/style\u003e","\u003c/button\u003e","\u003c/a\u003e","\u003c/form\u003e","\u003c/input\u003e","\u003c/textarea\u003e","\u003c/select\u003e","\u003c/option\u003e","\u003c/label\u003e"]}
SM-MESSAGE {"kind":"set","stateId":"","items":null,"key":"disabled","value":false}
SM-MESSAGE {"kind":"passthrough","stateId":"","items":null,"passthrough":{"display":"Pro","kind":"service_tier","service_tier":"Pro"}}
SM-MESSAGE {"kind":"passthrough","stateId":"","items":null,"passthrough":{"kind":"task_status","percent_complete":null,"status":"complete","task":"Initializing"}}
SM-MESSAGE {"kind":"passthrough","stateId":"","items":null,"passthrough":{"kind":"active_repo","repo_simple_name":null}}
SM-MESSAGE {"kind":"response","stateId":"test_id","items":[{"kind":"text","text":" World"}]}
SM-MESSAGE {"kind":"response","stateId":"test_id","items":[{"kind":"text","text":"!\n"},{"kind":"barrier","text":""}]}
SM-MESSAGE {"kind":"response","stateId":"test_id","items":[{"kind":"end","text":""}]}
The current implementation is working against version 15.
Version 26 behaves different. Let's make it work again.
This conversation started with #1. Moving it here for clarity.
Note: There is a v1 of the protocol and a v2 (not yet released). For now the focus is on making version 26/v1 work.