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:
@@ -1,9 +1,10 @@
|
||||
import crypto from 'node:crypto';
|
||||
import { app, nativeImage } from 'electron';
|
||||
import { nativeImage } from 'electron';
|
||||
import { extname, join } from 'node:path';
|
||||
import type { HostApiContext } from '../context';
|
||||
import type { NormalizedHostApiRequest } from '../route-utils';
|
||||
import { ok, parseJsonBody } from '../route-utils';
|
||||
import { getUserDataDir } from '@electron/utils/paths';
|
||||
|
||||
const EXT_MIME_MAP: Record<string, string> = {
|
||||
'.png': 'image/png',
|
||||
@@ -29,7 +30,7 @@ function mimeToExt(mimeType: string): string {
|
||||
return '';
|
||||
}
|
||||
|
||||
const OUTBOUND_DIR = join(app.getPath('userData'), 'openclaw-media', 'outbound');
|
||||
const OUTBOUND_DIR = join(getUserDataDir(), 'openclaw-media', 'outbound');
|
||||
|
||||
async function generateImagePreview(filePath: string, mimeType: string): Promise<string | null> {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user