30 lines
932 B
TypeScript
30 lines
932 B
TypeScript
export type CanvasAppearance = {
|
|
agentName: string;
|
|
launcherLabel: string;
|
|
panelTitle: string;
|
|
welcomeTitle: string;
|
|
welcomeDescription: string;
|
|
inputPlaceholder: string;
|
|
avatarType: "orb" | "live2d";
|
|
live2dResourceId: string;
|
|
live2dEntry: string;
|
|
avatarHeight: number;
|
|
};
|
|
|
|
export const DEFAULT_CANVAS_APPEARANCE: CanvasAppearance = {
|
|
agentName: "影策",
|
|
launcherLabel: "Agent",
|
|
panelTitle: "画布助手",
|
|
welcomeTitle: "在这里,和{agentName}让灵感,慢慢成形",
|
|
welcomeDescription: "从一个想法开始,和{agentName}一起创作。",
|
|
inputPlaceholder: "输入操作指导;用 @ 引用画布节点,用 / 或 、 引用 Skills",
|
|
avatarType: "orb",
|
|
live2dResourceId: "",
|
|
live2dEntry: "",
|
|
avatarHeight: 220,
|
|
};
|
|
|
|
export function agentCopy(template: string, name: string) {
|
|
return template.replaceAll("{agentName}", () => name);
|
|
}
|