High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
ci changes
Yash Jadhav5a37e6f93491
diff --git a/internal/cli/actions/actions_storage.go b/internal/cli/actions/actions_storage.goindex 2b460080..0bfb080b 100644--- a/internal/cli/actions/actions_storage.go+++ b/internal/cli/actions/actions_storage.go@@ -65,6 +65,7 @@ func StorageSet(client *http.Client, base, token string, cmd *cobra.Command, key}// StorageDelete removes a storage item, clears a store, or clears both (--all).+// It calls DELETE /storage so the server-side delete/clear handler is used.func StorageDelete(client *http.Client, base, token string, cmd *cobra.Command) {storageType, _ := cmd.Flags().GetString("type")key, _ := cmd.Flags().GetString("key")@@ -88,7 +89,7 @@ func StorageDelete(client *http.Client, base, token string, cmd *cobra.Command)body["tabId"] = tabID}- result := apiclient.DoPost(client, base, token, "/storage", body)+ result := apiclient.DoDeleteJSON(client, base, token, "/storage", body)if result == nil {fmt.Fprintln(os.Stderr, "Failed to delete storage")os.Exit(1)diff --git a/internal/cli/apiclient/client.go b/internal/cli/apiclient/client.goindex 4b7bfabf..5c42557a 100644--- a/internal/cli/apiclient/client.go+++ b/internal/cli/apiclient/client.go@@ -141,6 +141,39 @@ func DoDelete(client *http.Client, base, token, path string, params url.Values)return result}+// DoDeleteJSON sends a DELETE request with a JSON body.+func DoDeleteJSON(client *http.Client, base, token, path string, body map[string]any) map[string]any {+ data, _ := json.Marshal(body)+ req, _ := http.NewRequest("DELETE", base+path, bytes.NewReader(data))+ req.Header.Set("Content-Type", "application/json")+ setAuthHeader(req, token)+ req.Header.Set(activity.HeaderAgentID, "cli")+ resp, err := client.Do(req)+ if err != nil {+ fatal("Request failed: %v", err)+ }+ defer func() { _ = resp.Body.Close() }()+ respBody, _ := io.ReadAll(resp.Body)++ if resp.StatusCode >= 400 {+ handleAPIError(resp.StatusCode, respBody)+ os.Exit(1)+ }++ var buf bytes.Buffer+ if json.Indent(&buf, respBody, "", " ") == nil {+ fmt.Println(buf.String())+ } else {+ fmt.Println(string(respBody))+ }++ var result map[string]any+ if err := json.Unmarshal(respBody, &result); err != nil {+ log.Printf("warning: error unmarshaling response: %v", err)+ }+ return result+}+// ResolveInstanceBase fetches the named instance from the orchestrator and returns// a base URL pointing directly at that instance's API port.func ResolveInstanceBase(orchBase, token, instanceID, bind string) string {