Commit Graph
38 Commits
Author SHA1 Message Date
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 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 a9e0b5ac1c [Haik]: added websocket connection to frontend for the agents subapp 2026-04-05 20:10:18 -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 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 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 c2d0c4d28e [Haik]: ckpt, sdk hooks & approval flow don 2026-04-02 22:46:54 -07:00
haikdc 4fa52be69e [Haik]: ckpt, fixed some minor lingering bug tweaks. Onto sdk hooks and approval flow 2026-04-02 21:32:26 -07:00
haikdc d3afc6fcac [Haik]: ckpt, mcp server dict builder and tool permission lists done 2026-04-02 21:05:33 -07:00
haikdc af8cf01c33 [Haik]: ckpt prompt building done (both the recursive system prompt and the actual prompt construction when a user adds context paths, forced tools, or skills) 2026-04-02 20:22:41 -07:00
haikdc 70a60b861f [Haik]: initial implementation of browser bridge, this push used some ai so ima clean up a couple things 2026-04-02 19:02:29 -07:00
haikdc 892841b4f2 [Haik]: ckpt, moved shared_structs into the core folder. Also moved some legacy browser related structs into here. Now onto the remaining integration of the browser bridge 2026-04-02 18:45:11 -07:00
haikdc 51a3ddbd76 [Haik]: ckpt, connection manager and feature bridge seem to be done, still gotta integrate the browser bridge to browser related tools tho 2026-04-02 18:33:24 -07:00
haikdc c6b9859521 [Haik]: fixed imports in agents.py 2026-04-02 18:12:21 -07:00
haikdc 3d79ac8f0a [Haik]: moved Agent, events, and tools to a new dir called /core which is parallel to /apps so that /apps only handles endpoint typa shit yk 2026-04-02 17:53:47 -07:00
haikdc 7c5ed2557e [Haik]: ok ik this looks like alot but basically all i did was move the HaikFix folder to the backend root, then irenamed the apps folder to OLDapps, then i renamed HaikFix to apps 2026-04-02 17:50:29 -07:00
haikdc a78819e1cf [Haik]: round 1 of absracting the agents dir. Leaving this as is for now then will circle back bc hella code needs to be redone here and de slopped 2026-03-31 23:12:16 -07:00
haikdc 8be1e48341 [Haik]: removed unused endpoints, also made linter compatible with endpoint parsing 2026-03-30 22:00:36 -07:00
haikdc 781003227d [Haik]: Agentic refactor 3. DRY Up Cross-Cutting Patterns 2026-03-30 02:42:48 -07:00
ciregenz 7c3da1ab4c [eric] fix 9Router CLI auth for subscription users, add analytics, update models 2026-03-27 00:21:19 -07:00
ciregenz bc218c8707 [eric] v1.0.14: fix 9Router server.js path, disconnect button, onboarding 2026-03-25 19:17:04 -07:00
ciregenz ebea25f0c2 [eric] [eric] add PostHog analytics, 9Router subscription proxy, unified usage tracking
- PostHog integration: collector, analytics subapp, opt-in UI, Analytics page
  - 9Router: auto-start, OAuth subscription flow, /v1/messages Anthropic format support
  - Settings overhaul: multi-provider API keys, subscription connect UI, onboarding modal
  - Unified usage: merge 9Router cost/token data into Settings Usage tab
  - Provider system: providers/, agent_loop, tools/ (unused, for future non-Anthropic support)
  - Agent SDK: restored as primary with 9Router ANTHROPIC_BASE_URL fallback
  - Updated system prompt, credential resolution, dashboard analytics
2026-03-24 14:02:58 -07:00
haikdc 9943ccafd5 [Haik]: (Agent browser render size matches that of user browser spawn) (queing messages) (chat loading bubble fix) (tethers to sub agents and branches are now permament and inputs are swapped to a continue chat button) (auto focus for everything) (history card position fix when redeployed) (dashboard persistance fixed) (non browser link clicks open in the in app browser now) (chat message tooltips for copy, branching, and editing / swapping between edited messages) 2026-03-18 23:45:54 -07:00
haikdc a1138a1782 [Haik]: (ability to resume chats if force end early) (agent selection actually works as advertised) (browser control/creation tool isolation) (in dev mode can see the action input schema) 2026-03-18 14:19:42 -07:00
haikdc a6a2c68115 [Haik]: ckpt, (view sidebar clicks fixed) (view back button removed) (backspace/delete to remove items from dash) (copy/paste items in dash) (Swapping between branches in chat) (Per message tool tips in chat) (chat branching support and some cool ahhh anims) (auto deselect items on toolbar collapse) (if exit selection mode, items get deselected) (item selections only populate focused chat input as context instead of all chat inputs) (swapped right and left mouse clicks to match that of other softwares) 2026-03-18 07:40:02 -07:00
haikdc 6f02daff2d [Haik]: (Browser actions shown in agent card output) (User can have item selection turned on by default in settings) (most browser related functionality works - altho spotify is tricky) (mcp discovery in prod shld worke now?) 2026-03-17 01:48:50 -07:00
haikdc 1632b5c9e5 [Haik]: ckpt, (Fixed view create duplication bug) (Views auto save) (MCP is star sorted by default) (reload issues in dash fixed) (electron app made) 2026-03-15 00:09:04 -07:00
haikdc 23621306a1 [Haik]: and so it begins 2026-03-13 12:09:25 -07:00