Commit Graph
60 Commits
Author SHA1 Message Date
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 0d3c515616 [hAIk]: migrate dashboard layout thunks to backend-bridge: replace legacy fetchLayout with GET_DASHBOARD and saveLayout with UPDATE_DASHBOARD, move browser-card tab normalization into slice extraReducers, extend Dashboard interface with layout type, remove dashboardLayoutThunks.ts and unused LayoutPayload/SaveLayoutPayload types. Also removed UsageStats and DiffViewer 2026-04-18 06:19:24 -07:00
haikdc 09ea76b12d [hAIk]: Replace custom DirectoryBrowser with native Electron file dialog; move ContextPath type to agentsTypes, remove BrowseResult, update all imports. Also removed unused Analytics page 2026-04-18 06:02:13 -07:00
haikdc e720f97444 [hAIk]: rewire toolsSlice to use tools.ts backend-bridge thunks, remove inline fetch logic, update useToolsState/useModes/useCommands/useCommandPickerItems/OpenSwarmMentionAdapter imports, replace raw OAuth disconnect fetch with OAUTH_DISCONNECT thunk 2026-04-18 05:43:20 -07:00
haikdc 09f4a22209 [hAIk]: integrate skills.ts bridge: add typed interfaces, rewrite skillsSlice and skillRegistrySlice to import thunks from bridge, replace raw fetch calls in useSkillBuilderSession with SEED/READ_SKILL_WORKSPACE, update type imports in UI components 2026-04-18 05:29:02 -07:00
haikdc 2b8e502bcb [hAIk]: integrate skills.ts bridge: add typed interfaces, rewrite skillsSlice and skillRegistrySlice to import thunks from bridge, replace raw fetch calls in useSkillBuilderSession with SEED/READ_SKILL_WORKSPACE, update type imports in UI components 2026-04-18 05:28:47 -07:00
haikdc a7f0ea520f [hAIk]: integrate settings backend-bridge into frontend: move AppSettings and CustomProvider interfaces into settings bridge with proper return types, switch Main.tsx to GET_SETTINGS, useSettings.ts to UPDATE_SETTINGS, GeneralTab.tsx to RESET_SYSTEM_PROMPT — all importing directly from the bridge 2026-04-18 05:15:16 -07:00
haikdc 825b59b875 [hAIk]: remove outputsSlice; migrate all 19 consumer files from state.outputs to state.apps; rewrite useViewWorkspace to use bridge thunks; remove all auto-run support 2026-04-18 05:10:05 -07:00
haikdc a0312deaf5 [hAIk]: integrate modes backend-bridge into frontend: add Mode type to bridge with proper typing, rewrite modesSlice to import thunks from backend-bridge (matching dashboards pattern), update useModes hook to use LIST_MODES/CREATE_MODE/UPDATE_MODE/RESET_MODE/DELETE_MODE, update useAgentChat/ModelModeSelector/useSettings to use LIST_MODES, remove legacy @/shared/config dependency from modes 2026-04-18 04:35:33 -07:00
haikdc 650c42077a [hAIk]: refactor: wire dashboardsSlice through backend-bridge, remove inline fetch calls from slice and update all 6 consumer files 2026-04-18 04:30:33 -07:00
haikdc 5c47a12181 [Haik]: migrate frontend thunks from agentsSlice to backend-bridge 2026-04-18 04:20:01 -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 1ba5f11591 [Haik]: migrate useAgentChat, agentsExtraReducer and useToolbarActions to backend-bridge thunks 2026-04-18 03:28:30 -07:00
haikdc 86a58258ac [Haik]: refactor agents extra reducers to use backend-bridge thunks and fix return types for update_system_prompt, delete_session, stop_agent, switch_branch, and close_session 2026-04-18 03:05:44 -07:00
haikdc bf313d42c2 [Haik]: fixed backend-bridge imports 2026-04-18 02:48:21 -07:00
haikdc 33cf18554c [Haik]: renamed shared/backend to shared/backend-bridge 2026-04-18 02:47:29 -07:00
haikdc 8ee84dac1e [hAIk]: fix agents.ts bridge to match backend response shapes and payload signatures 2026-04-18 02:40:44 -07:00
haikdc 6e3cb16aca [hAIk]: fix: collapse multi-param thunk payloads into single objects 2026-04-18 02:37:30 -07:00
haikdc e4f400962f [hAIk]: (add frontend bridge files for all backend sub-apps) (fix: collapse multi-param async thunk payloads into single objects) 2026-04-18 02:35:08 -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 4866e644e2 [hAIk]: add .lintignore sentinel files for per-folder lint suppression — drop a .lintignore in any directory to skip all checks, or .lintignore-{rule} to skip a specific one (max-file-lines, max-folder-items, no-nested-imports, vulture, eslint, knip, endpoints, classes). Adds collect_lintignores() and is_lintignored() to checks/init.py, wires filtering into lint.py and all sub-linter runners, and updates watch mode to detect .lintignore changes 2026-04-18 00:13:43 -07:00
haikdc c306a472d5 [Haik]: added unified shared/routes in the frontend, gonna start porting shit over to the new backend setup now 2026-04-17 23:59:44 -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 63af322ab7 [Haik]: manually removed hella shit that was just not being used at all (the knip linter is clutch) 2026-03-31 00:57:33 -07:00
haikdc de47fc06e6 [Haik]: ckpt, removed prompt templates and all related shit 2026-03-30 23:06:08 -07:00
haikdc eb792617a5 [Haik]: ckpt, fixed nine router inter dependency issues with local and prod sharing ports. Also centralized all port handling to a ports.config.json in the root dir 2026-03-30 07:56:15 -07:00
haikdc 46affaa5e9 [Haik]: ckpt, updated readmes 2026-03-30 05:39:24 -07:00
haikdc 21fe641a46 [Haik]: Agentic refactor 4. Frontend Cleanup 2026-03-30 04:45:29 -07:00
ciregenz 0616b0ecbc [eric] v1.0.20: add common MCP integrations, mcp OAuth, one-click connect UX, onboarding tools step, ui/ux improvements 2026-03-29 16:33:36 -07:00
ciregenz d22e992148 [eric[ prod tesed and working 2026-03-25 15:48:13 -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
ciregenz 8d09e46df5 [eric] add PostHog analytics integration 2026-03-24 11:48:50 -07:00
haikdc 809eacc041 [Haik]: round 2 of dynamic island redesign (collapsible completed tab) (approve/deny from collapsed state) (height limited and scrollable expanded state) 2026-03-20 23:41:20 -07:00
haikdc 9f1a322fed [Haik]: if an agent creates multiple browsers, now they stack vertically the same way spawned sub agents do 2026-03-20 22:51:28 -07:00
haikdc 99695253ea [Haik]: round 1 of browser use animations (glowing links) (auto spawn in position set) 2026-03-20 22:44:50 -07:00
haikdc c8b2726ec7 [Haik]: fixed dashboard z index ordering so most recently clicked card is always on top 2026-03-20 22:31:21 -07:00
haikdc 7df846af20 [Haik]: CreateBrowserAgent now spawns in the browser to the right of whatever agent created it (like subagents spawn in) 2026-03-20 22:18:38 -07:00
haikdc 3f37ad8847 [Haik]: browser agent issues fixed (e.g. stopping it via parent or sub agent acc stops it now) (the lil browser agent modal properly shows up when a browser is reinvoked) 2026-03-20 21:54:46 -07:00
haikdc c0afabb964 [Haik]: (moved logo out of island) (fixed notification derefrencing issues when u swap dashboards) (fixed chat header update issue where itd get stuck in the completed state) 2026-03-20 21:37:27 -07:00
haikdc 03c1cb1c91 [Haik]: ckpt, auto spawn sub agent feature done and toggleable via settings 2026-03-20 12:25:49 -07:00
haikdc 6dcfb19b17 [Haik]: ckpt, view builder saving issue fixed via templates, system prompts, and skills. Also added a reset to default for modes. 2026-03-19 01:58:20 -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 78552982d8 [Haik]: ckpt (input focus persistance in select mode) (can set default spawn in state of a card from expanded to collapsed in settings) (Settings update notification is more in ur face now - to be tested in prod) 2026-03-18 04:09:39 -07:00
haikdc b937003a24 [Haik]: ckpt (builtin tool call permissions are now functional) (when card is selected in dash hover scroll still works) (notification ui now shows actively running agents too - with the ability to stop them too) (agent card with is persistent post auto layout) (gworkspace discovery func works in prod now - to be tested in prod) (stable release naming for files so most recent version has fixed release link - to be tested in prod) 2026-03-18 01:48:53 -07:00
haikdc 6e1fc1dee2 [Haik]: ckpt (Round 1 of fixing mcp server issues in prod - still has bugs) (Fixed some browser related issues like popup windows rendering out of app and weird js framework related errors when u open sites like spotify) (Added option in settings to toggle item selection to be on by default when selecting a new chat) (Browser agent actions now show up in chat output) (Browser agent actions each have their own custom icon) 2026-03-17 23:52:20 -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 b90e5c6353 [Haik]: (Practically all forms of dashboard interaction glitches) (made dashboard selection process much more intuitive and seamless - and high level) (added BrowserAgent so the outer agent can delegate more complex tasks) (added tool to parallelize across multiple browser agents since the abstraction keeps the tool calls so high level) (Added a temporary agent insight ui over each browser as it does stuff - human in the loop is still needed) 2026-03-16 05:01:56 -07:00