feat: refactor HomePage to integrate agents store and update related components
feat: add runtime event handling for providers in ProvidersSection feat: update routing to include Channels and Agents pages feat: extend route types and navigation items for Channels and Agents feat: implement agents store for managing agent data and interactions fix: update chat store to utilize agents store for agent-related functionality chore: export agents store from index fix: enhance runtime types for better event handling fix: update Vite config to handle dev server URL correctly
This commit is contained in:
@@ -7,6 +7,7 @@ export const OPENCLAW_CONFIG_DIR_NAME = '.openclaw';
|
||||
export const OPENCLAW_RUNTIME_DIR_NAME = 'runtime';
|
||||
export const OPENCLAW_PACKAGE_DIR_NAME = 'openclaw';
|
||||
export const OPENCLAW_ENTRY_FILE_NAME = 'openclaw.mjs';
|
||||
export const USER_DATA_DIR_ENV_NAME = 'ZN_AI_USER_DATA_DIR';
|
||||
|
||||
export interface OpenClawRuntimePaths {
|
||||
configDir: string;
|
||||
@@ -20,6 +21,14 @@ export function getOpenClawConfigDir(): string {
|
||||
return join(homedir(), OPENCLAW_CONFIG_DIR_NAME);
|
||||
}
|
||||
|
||||
export function getUserDataDir(): string {
|
||||
const override = process.env[USER_DATA_DIR_ENV_NAME]?.trim();
|
||||
if (override) {
|
||||
return override;
|
||||
}
|
||||
return app.getPath('userData');
|
||||
}
|
||||
|
||||
export function getOpenClawRuntimeDir(): string {
|
||||
return join(getOpenClawConfigDir(), OPENCLAW_RUNTIME_DIR_NAME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user