feat: create execute command

This commit is contained in:
2026-05-11 17:40:02 +03:00
parent d27eff2c57
commit 6046b8ae9d
5 changed files with 93 additions and 22 deletions
@@ -22,10 +22,11 @@ func (r *ResponseStore) Write(responseID string, channel chan domainHub.AgentRes
r.store[responseID] = channel
}
func (r *ResponseStore) Read(responseID string) chan domainHub.AgentResponse {
func (r *ResponseStore) Read(responseID string) (chan domainHub.AgentResponse, bool) {
r.mutex.RLock()
defer r.mutex.RUnlock()
return r.store[responseID]
ch, ok := r.store[responseID]
return ch, ok
}
func (r *ResponseStore) Delete(responseID string) {