mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: Xingyao Wang <xingyao@all-hands.dev> Co-authored-by: Graham Neubig <neubig@gmail.com> Co-authored-by: llamantino <213239228+llamantino@users.noreply.github.com> Co-authored-by: mamoodi <mamoodiha@gmail.com> Co-authored-by: Tim O'Farrell <tofarr@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ryan H. Tran <descience.thh10@gmail.com> Co-authored-by: Neeraj Panwar <49247372+npneeraj@users.noreply.github.com> Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com> Co-authored-by: Insop <1240382+insop@users.noreply.github.com> Co-authored-by: test <test@test.com> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com> Co-authored-by: Zhonghao Jiang <zhonghao.J@outlook.com> Co-authored-by: Ray Myers <ray.myers@gmail.com>
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
import { combineReducers, configureStore } from "@reduxjs/toolkit";
|
|
import agentReducer from "./state/agent-slice";
|
|
import browserReducer from "./state/browser-slice";
|
|
import codeReducer from "./state/code-slice";
|
|
import fileStateReducer from "./state/file-state-slice";
|
|
import initialQueryReducer from "./state/initial-query-slice";
|
|
import commandReducer from "./state/command-slice";
|
|
import { jupyterReducer } from "./state/jupyter-slice";
|
|
import securityAnalyzerReducer from "./state/security-analyzer-slice";
|
|
import statusReducer from "./state/status-slice";
|
|
import metricsReducer from "./state/metrics-slice";
|
|
import microagentManagementReducer from "./state/microagent-management-slice";
|
|
import eventMessageReducer from "./state/event-message-slice";
|
|
|
|
export const rootReducer = combineReducers({
|
|
fileState: fileStateReducer,
|
|
initialQuery: initialQueryReducer,
|
|
browser: browserReducer,
|
|
code: codeReducer,
|
|
cmd: commandReducer,
|
|
agent: agentReducer,
|
|
jupyter: jupyterReducer,
|
|
securityAnalyzer: securityAnalyzerReducer,
|
|
status: statusReducer,
|
|
metrics: metricsReducer,
|
|
microagentManagement: microagentManagementReducer,
|
|
eventMessage: eventMessageReducer,
|
|
});
|
|
|
|
const store = configureStore({
|
|
reducer: rootReducer,
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppStore = typeof store;
|
|
export type AppDispatch = typeof store.dispatch;
|
|
|
|
export default store;
|