Commit Graph
149 Commits
Author SHA1 Message Date
Arnav Naval 58c241442b add local.sh Windows compatability 2026-04-20 01:14:39 -05:00
haikdc 6a9dd59eec [hAIk]: refactor AgentCard and BrowserCard into subdirectory modules, plumb dashboard_id from launch through Agent/AgentSnapshot, add on_done auto-persist callback, fix get_all_sessions to use GET query params, atomic PydanticStore writes, graceful backend shutdown in local.sh, and add mode config JSONs 2026-04-18 12:05:50 -07:00
haikdc f98c56ab7e [hAIk]: Holy fucking shit the agent finally works in the frontend: align frontend/backend naming: rename AgentSession.id→session_id across agentsTypes, agentsReducers, agentsExtraReducers, AgentCard, BrowserAgentOverlay, DashboardCanvas, useAgentChat, useToolbarActions, useDashboardKeyboard, MessageActions, and backend-bridge agents/dashboards; rename CardPosition.zOrder→z_order in dashboardLayoutTypes, dashboardLayoutReducers, dashboardLayoutSlice, and DashboardCanvas; fix circular import between dashboards.py and agents.py by deferring imports; add NINE_ROUTER_MODEL_MAP for sonnet/opus/haiku alias resolution in launch_agent; make build_agent_toolkit async and pass load_dashboard/save_dashboard into browser delegation toolkit; fix PromptMsgDict to use TypedDict, fix zip type hint bug, and fix browser agent model reference (parent.model→parent.config.model); add p_on_task_done callback with traceback logging on Agent, capture stderr and full tracebacks in run_agent_loop; add unwrages helper in agentsExtraReducers to normalize nested message payloads; pipe frontend console-message events to Electron stdout; enable ws:true on Vite proxy; add diagnostic console.logs across WS handlers, session lifecycle, and dashboard updates 2026-04-18 10:26:51 -07:00
haikdc d6d6bc2271 [hAIk]: added in debug statements instead of printing/logging 2026-04-18 07:43:31 -07:00
haikdc ca2ea81f82 [hAIk]: refactor backend settings and tools routes to use explicit endpoint names (/get_settings, /update_settings, /get_builtin_permissions, /update_builtin_permissions) with matching frontend updates; simplify base_routes.ts to relative /api path; add new appsSlice Redux slice and register in store; remove unused GET_HISTORY reducer; rename structlint to lint across CI workflow, local.sh, and publish.sh; strip ANSI escape codes from NineRouter forwarded output; add swarm-debug as backend dependency 2026-04-18 07:21:41 -07:00
haikdc ad8add82fd [hAIk]: replace HTTP file upload with native Electron showOpenDialog: remove uploadAndAttachFiles fetch-based upload in useChatSubmit and useComposerAttachments, add browseAndAttachFiles using window.openswarm.showOpenDialog with ContextPath-based attachment, declare showOpenDialog in electron.d.ts, remove hidden file input refs and upload spinner from ChatInput/ModelModeSelector/OpenSwarmComposer. Rename WebSocket from /ws/dashboard to /ws on backend and rename dashboardWs to agentsWs across WebSocketManager, useDashboardInit, and browserCommandHandler. Export AGENTS_WS_API from agents bridge. Disable modelsSlice (delete file, comment out store registration and fetchModels dispatches) and stub mcpRegistrySlice thunks with not-implemented errors, move clearDetail to local action creator in useToolsState 2026-04-18 06:52:50 -07:00
haikdc c329c0f837 [Haik]: migrate launchAndSendFirstMessage and searchHistory from agentsSlice to backend-bridge thunks (META_LAUNCH_AND_SEND, GET_HISTORY); wire up new thunks in useAgentChat, useToolbarActions, useDashboardToolbar, agentsExtraReducers, and dashboardLayoutSlice; normalize backend response key from SESSIONS to sessions; remove dashboardId param from history search calls; replace any types with AgentSession, CardPosition, and AgentConfig; remove stale settingsApplied useEffect; split image payload into separate data and media_type arrays for SEND_MESSAGE 2026-04-18 04:04:44 -07:00
haikdc 2a898f3f08 [Haik]: refactor: overhaul agents API contract and frontend backend layer — rename all backend agent routes from RESTful path-param style (e.g. /sessions/{id}/message) to flat action-named endpoints (e.g. /send_message), replace Pydantic BaseModel request classes (LaunchBody, MessageBody, etc.) with inline FastAPI Body() parameters, delete the scattered frontend shared/routes/ directory (11 files) and agentsThunks.ts, and replace them with a co-located shared/backend/apps/ structure where each backend app has its routes, fetch functions, and async thunks in a single file 2026-04-18 02:23:44 -07:00
haikdc f691ca1ff1 [Haik]: added lintignores 2026-04-18 00:20:44 -07:00
haikdc dbfa1a3c7d [Haik]: Fixed all pydantic instance attribute violations 2026-04-17 23:34:15 -07:00
haikdc e5ba3412f2 [Haik]: classes now extend basemodel and private vars properly dont start with an underscore 2026-04-05 21:17:03 -07:00
haikdc 2dec5b6283 [Haik]: created helper sub fulder and fixed imports 2026-04-05 21:13:18 -07:00
haikdc dd79b10e3c [Haik]: ckpt, made classes for NineRouterClient and NineRouterProcess, now gonna abstract the NineRouter dir a bit, then clean up the type specing/checking in all the classes 2026-04-05 21:10:07 -07:00
haikdc e835604a09 [Haik]: ckpt, initial version of NineRouter singelton 2026-04-05 20:58:44 -07:00
haikdc 28820c91eb [Haik]: ckpt, abstracted helpers within NineRouterProcess 2026-04-05 20:47:18 -07:00
haikdc aa250ce203 [Haik]: minor cleanup focussed around naming (especially the names starting with an underscore as this just nerfs all type checking/specing) also some logger removes, pulling out constants, etc. Now gonna pull out some helpers then maybe its singelton time again? 2026-04-05 20:33:40 -07:00
haikdc 961941bd38 [Haik]: ckpt, ai slop subscriptions subapp done, now time for janitor haik to come in 2026-04-05 20:19:27 -07:00
haikdc a9e0b5ac1c [Haik]: added websocket connection to frontend for the agents subapp 2026-04-05 20:10:18 -07:00
haikdc 17649e3be2 [Haik]: renamed registry_refresh_loop folder to RegistryRefreshLoop. Also created a SkillStore folder containing the relevant content so both singeltons are roughly organized the same 2026-04-05 19:00:18 -07:00
haikdc b1dbd4bce8 [Haik]: all skills related abstractions done, now gonna clean up and rename 2026-04-05 18:56:05 -07:00
haikdc f012faae94 [Haik]: ckpt on cleanup, made a SkillStore singelton to handle db logic, also abstracted helper functions but now likely gonna make this a singelton too 2026-04-05 18:36:20 -07:00
haikdc e1e8986519 [Haik]: ckpt, ai slop skills subapp done, now time for janitor haik to come in 2026-04-05 18:10:26 -07:00
haikdc 498483f909 [Haik]: renamed the pydantic store from _store to P_APP_METADATA_STORE 2026-04-05 17:40:36 -07:00
haikdc 02274d0289 [Haik]: removed redundant duplicate file storage, also renamed anything related to an app workspace to avoid confusion with when we ultimately swap the dashboards over to be workspaces 2026-04-05 17:37:45 -07:00
haikdc f047bd57b7 [Haik]: reorganized enpoint classes to be within the subapp directly like other subapps 2026-04-05 17:22:21 -07:00
haikdc ef1d2daa46 [Haik]: ckpt, abstracted utils into their own folder 2026-04-05 17:04:48 -07:00
haikdc bf217ec081 [Haik]: ckpt, abstracted the templates functionality and swap contents to be legit files 2026-04-05 16:58:14 -07:00
haikdc 61212c648d [Haik]: removed app input functionality entirely as this will no longer be used 2026-04-05 16:49:44 -07:00
haikdc 6fbd766bbe [Haik]: ckpt, app builder skeleton copied over from legacy with slight mods and fluff trimmage. Now gonna trim out some more stuff, then refactor / organize 2026-04-05 16:32:50 -07:00
haikdc fa3376f9d8 [Haik]: renamed the oath folder to OAuthService 2026-04-05 15:46:52 -07:00
haikdc 7dfbe21787 [Haik]: cleaned up oauth logic so theres a single OAuthService class that handles logic only, then all endpoints and stores are handled in the tools subapp. Now gonna rename the oauth folder and fix imports 2026-04-05 15:44:35 -07:00
haikdc 60f554de6a [Haik]: cleaned up imports prior to oath.py refactor 2026-04-05 14:52:09 -07:00
haikdc beb37eed42 [Haik]: abstracted and refactored the oath providers so its easier to add on to. 2026-04-05 14:49:11 -07:00
haikdc 6d5cc3648e [Haik]: ignore this push, just doing it bc git wont register a rename if its case changes only 2026-04-05 14:26:06 -07:00
haikdc 5536c0e60e [Haik]: tools subapp done, some touch ups may be done tho 2026-04-05 14:24:16 -07:00
haikdc f9b1c8277a [Haik]: ckpt, pulled out shared mode resolution logic into its own helper class 2026-04-05 12:03:25 -07:00
haikdc 76a0b7c3ca [Haik]: integrated modes subapp into the agents subapp so now modes are acctually functional 2026-04-05 11:51:53 -07:00
haikdc 80233bbce3 [Haik]: ckpt, modes subapp is done and satisfactory for now, altho future touch ups may be done 2026-04-05 11:38:46 -07:00
haikdc dbdd6e8cb7 [Haik]: ckpt, copied over legacy modes subapp 2026-04-05 11:30:53 -07:00
haikdc e6848686aa [Haik]: removed lingering OLDapps dependancy from create_browser_card, also made mods to shared_structs because of this 2026-04-05 11:29:35 -07:00
haikdc c71e25d37b [Haik]: ckpt, dashboards subapp now done fully. Also made the resolve_sdk_env which is used now both for normal agents and quick llm calls, also modded the agents subapp to properly make use of this helper, also modded the run_browser_agent to inheret this from its parent agent 2026-04-05 11:09:15 -07:00
haikdc 84a87b715e [Haik]: ckpt on dashboard subapp, largely done, but now i gotta finick around w some of the llm abstractions (especially around keys/subscription) 2026-04-05 10:39:04 -07:00
haikdc 5906c9d113 [Haik]: Made a COMMS_MANAGER singelton which handles all high level frontend comm concerns used by the agents subapp 2026-04-05 09:37:10 -07:00
haikdc 48098966a7 [Haik]: renamed ws to FrontendBroadcaster (bc thats what it is conceptually). Made it into a singelton, and better abstracted it for seperation of concerns. 2026-04-05 09:24:23 -07:00
haikdc 9899d37c64 [Haik]: removed old agentsd.py websocket wrapper bc it seemed like bs (may have to re add in some bits later). Now gonna add in some singeltons where applicable 2026-04-05 09:11:44 -07:00
haikdc 1cd5eaa496 [Haik]: ckpt on agents.py abstraction, looking good so far but we can do more 2026-04-05 08:37:38 -07:00
haikdc eca8cccf1a [Haik]: ckpt, copied over health and dashboard sub apps. Also made a generic PydanticStore and swapped the agents subapp to use this instead. Now gonna abstract and clean up this agents sub app a bit, then gonna make the dashboards sub app functional via the new codebase not the legacy shit 2026-04-05 08:21:13 -07:00
haikdc ef688f0a2e [Haik]: minor type specing/checking tweaks 2026-04-05 07:16:21 -07:00
haikdc da08d603e8 [Haik]: ckpt, settings done i think 2026-04-03 17:12:49 -07:00
haikdc c2d0c4d28e [Haik]: ckpt, sdk hooks & approval flow don 2026-04-02 22:46:54 -07:00