完善客户端模块与工作区能力
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-13 19:45:30 +08:00
parent 0148b91a15
commit 22add3f01f
97 changed files with 4756 additions and 3226 deletions

View File

@@ -1,9 +1,9 @@
import type { LucideIcon } from 'lucide-react';
import { Code2, Paintbrush, Sigma } from 'lucide-react';
import { Bot, Code2, Paintbrush, Sigma } from 'lucide-react';
export const AI_MODULE_SELECTION_PATH = '/module-select';
export type AiModuleId = 'programming' | 'painting' | 'learning';
export type AiModuleId = 'programming' | 'painting' | 'learning' | 'robot';
export type AiModuleDefinition = {
id: AiModuleId;
@@ -13,6 +13,7 @@ export type AiModuleDefinition = {
route: string | null;
enabled: boolean;
Icon: LucideIcon;
switcherLabel?: string;
};
export const aiModules: readonly AiModuleDefinition[] = [
@@ -43,6 +44,16 @@ export const aiModules: readonly AiModuleDefinition[] = [
enabled: false,
Icon: Sigma,
},
{
id: 'robot',
title: 'Makelore Robot',
subtitle: 'AI 机器',
description: '制作你的第一个机器人小伙伴',
route: null,
enabled: false,
Icon: Bot,
switcherLabel: 'Robot 机器',
},
];
export function getAiModuleForPath(pathname: string): AiModuleId {