Skip to content

Commit 91c0338

Browse files
committed
rebrand: final pass of internal strings and prompt cleanup
1 parent 00ea9fd commit 91c0338

File tree

7 files changed

+44
-40
lines changed

7 files changed

+44
-40
lines changed

src/components/chat/ChatInput.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ export function ChatInput({ chatId }: { chatId?: number }) {
124124
chatId &&
125125
proposal.actions.some((a) => a.id === "keep-going")
126126
) {
127-
console.log("Auto-triggering 'Keep going' in Autonomous mode");
127+
console.log("Auto-triggering continue in Autonomous mode");
128128
setRetryCount(0); // Reset retry count on success
129129
streamMessage({
130-
prompt: "Keep going",
130+
prompt:
131+
"Continue from exactly where you left off. Do NOT restart or rewrite anything already built. Pick up the next incomplete task and keep going until the app is fully done.",
131132
chatId,
132133
redo: false,
133134
});
@@ -155,10 +156,9 @@ export function ChatInput({ chatId }: { chatId?: number }) {
155156
);
156157
const timer = setTimeout(() => {
157158
setRetryCount((prev) => prev + 1);
158-
// Redo the last Turn
159-
// Note: We don't easily have access to 'messages' here in the same way, so we tell the AI to retry.
160159
streamMessage({
161-
prompt: "Please retry your last task. It failed with an error.",
160+
prompt:
161+
"There was a transient error. Please continue from where you left off — do NOT restart or redo work already completed. Fix just the failed step and carry on.",
162162
chatId,
163163
redo: false,
164164
});
@@ -597,13 +597,14 @@ function KeepGoingButton() {
597597
return;
598598
}
599599
streamMessage({
600-
prompt: "Keep going",
600+
prompt:
601+
"Continue from exactly where you left off. Do NOT restart or rewrite anything already built. Pick up the next incomplete task and keep going until the app is fully done.",
601602
chatId,
602603
});
603604
};
604605
return (
605-
<SuggestionButton onClick={onClick} tooltipText="Keep going">
606-
Keep going
606+
<SuggestionButton onClick={onClick} tooltipText="Continue building">
607+
Continue
607608
</SuggestionButton>
608609
);
609610
}

src/ipc/handlers/chat_stream_handlers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export function registerChatStreamHandlers() {
249249

250250
if (attachment.attachmentType === "upload-to-codebase") {
251251
// For upload-to-codebase, create a unique file ID and store the mapping
252-
const fileId = `DYAD_ATTACHMENT_${index}`;
252+
const fileId = `ALIFULLSTACK_ATTACHMENT_${index}`;
253253

254254
fileUploadsState.addFileUpload(fileId, {
255255
filePath,
@@ -574,12 +574,12 @@ ${componentSnippet}
574574
When files are attached to this conversation, upload them to the codebase using this exact format:
575575
576576
<alifullstack-write path="path/to/destination/filename.ext" description="Upload file to codebase">
577-
DYAD_ATTACHMENT_X
577+
ALIFULLSTACK_ATTACHMENT_X
578578
</alifullstack-write>
579579
580-
Example for file with id of DYAD_ATTACHMENT_0:
580+
Example for file with id of ALIFULLSTACK_ATTACHMENT_0:
581581
<alifullstack-write path="src/components/Button.jsx" description="Upload file to codebase">
582-
DYAD_ATTACHMENT_0
582+
ALIFULLSTACK_ATTACHMENT_0
583583
</alifullstack-write>
584584
585585
`;

src/ipc/utils/app_env_var_utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ export async function updateDbPushEnvVar({
6060
envVars = [];
6161
}
6262

63-
// Update or add DYAD_DISABLE_DB_PUSH
63+
// Update or add ALIFULLSTACK_DISABLE_DB_PUSH
6464
const existingVar = envVars.find(
65-
(envVar) => envVar.key === "DYAD_DISABLE_DB_PUSH",
65+
(envVar) => envVar.key === "ALIFULLSTACK_DISABLE_DB_PUSH",
6666
);
6767
if (existingVar) {
6868
existingVar.value = disabled ? "true" : "false";
6969
} else {
7070
envVars.push({
71-
key: "DYAD_DISABLE_DB_PUSH",
71+
key: "ALIFULLSTACK_DISABLE_DB_PUSH",
7272
value: disabled ? "true" : "false",
7373
});
7474
}

src/ipc/utils/llm_engine_provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function createAliFullStackEngine(
7979
const getHeaders = () => ({
8080
Authorization: `Bearer ${loadApiKey({
8181
apiKey: options.apiKey,
82-
environmentVariableName: "DYAD_PRO_API_KEY",
82+
environmentVariableName: "ALIFULLSTACK_PRO_API_KEY",
8383
description: "Example API key",
8484
})}`,
8585
...options.headers,

src/pages/home.tsx

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function HomePage() {
4848
const { settings, updateSettings } = useSettings();
4949
const setIsPreviewOpen = useSetAtom(isPreviewOpenAtom);
5050
const [isLoading, setIsLoading] = useState(false);
51-
const [loadingSteps, setLoadingSteps] = useState<string[]>([]);
51+
const [currentStep, setCurrentStep] = useState<string>("");
5252
const { streamMessage } = useStreamChat({ hasChatId: false });
5353
const posthog = usePostHog();
5454
const appVersion = useAppVersion();
@@ -59,7 +59,7 @@ export default function HomePage() {
5959

6060
useEffect(() => {
6161
const handleProgress = (data: { message: string }) => {
62-
setLoadingSteps((prev) => [...prev, data.message]);
62+
setCurrentStep(data.message);
6363
};
6464

6565
const ipc = (window as any).electron.ipcRenderer;
@@ -133,7 +133,7 @@ export default function HomePage() {
133133

134134
try {
135135
setIsLoading(true);
136-
setLoadingSteps(["Starting app creation..."]);
136+
setCurrentStep("Starting app creation...");
137137
// Create the chat and navigate
138138
const result = await IpcClient.getInstance().createApp({
139139
name: generateCuteAppName(),
@@ -177,29 +177,32 @@ export default function HomePage() {
177177
if (isLoading) {
178178
return (
179179
<div className="flex flex-col items-center justify-center max-w-3xl m-auto p-8">
180+
<style>{`
181+
@keyframes stepFadeIn {
182+
from { opacity: 0; transform: translateY(8px); }
183+
to { opacity: 1; transform: translateY(0); }
184+
}
185+
.step-fade-in {
186+
animation: stepFadeIn 0.35s ease forwards;
187+
}
188+
`}</style>
180189
<div className="w-full flex flex-col items-center">
181190
{/* Loading Spinner */}
182191
<div className="relative w-24 h-24 mb-8">
183192
<div className="absolute top-0 left-0 w-full h-full border-8 border-gray-200 dark:border-gray-700 rounded-full"></div>
184193
<div className="absolute top-0 left-0 w-full h-full border-8 border-t-primary rounded-full animate-spin"></div>
185194
</div>
186-
<h2 className="text-2xl font-bold mb-2 text-gray-800 dark:text-gray-200">
195+
<h2 className="text-2xl font-bold mb-4 text-gray-800 dark:text-gray-200">
187196
Building your app
188197
</h2>
189-
<div className="text-gray-600 dark:text-gray-400 text-center max-w-md mb-8 min-h-[4rem]">
190-
{loadingSteps.map((step, idx) => (
191-
<p
192-
key={idx}
193-
className={`text-sm ${idx === loadingSteps.length - 1 ? "font-medium text-primary animate-pulse" : "opacity-60"}`}
194-
>
195-
{step}
196-
</p>
197-
))}
198-
{loadingSteps.length === 1 && (
199-
<p className="text-xs mt-2 opacity-50 italic">
200-
This might take a moment...
201-
</p>
202-
)}
198+
<div className="text-center max-w-md mb-8 min-h-[3rem] flex items-center justify-center">
199+
{/* Key on the step text so React remounts it and reruns the animation */}
200+
<p
201+
key={currentStep}
202+
className="step-fade-in text-sm font-medium text-primary"
203+
>
204+
{currentStep}
205+
</p>
203206
</div>
204207
</div>
205208
</div>

src/paths/paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function getAliFullStackAppPath(appPath: string): string {
1515
}
1616

1717
// Backward compatibility alias
18-
export const getDyadAppPath = getAliFullStackAppPath;
18+
export const getAliFullStackAppPath = getAliFullStackAppPath;
1919

2020
export function getTypeScriptCachePath(): string {
2121
const electron = getElectron();

src/prompts/system_prompt.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Follow this systematic approach when building web applications:
9696
`;
9797

9898
export const BACKEND_BUILD_SYSTEM_PREFIX = `
99-
<role> You are Roo-Code, an AI-powered coding assistant that helps users with software development. You can create and modify code across different technologies and frameworks. You are helpful, knowledgeable, and focused on writing clean, maintainable code that follows best practices. </role>
99+
<role> You are AliFullStack, an AI-powered coding assistant that helps users with software development. You can create and modify code across different technologies and frameworks. You are helpful, knowledgeable, and focused on writing clean, maintainable code that follows best practices. </role>
100100
101101
You have access to a set of tools that help you accomplish a wide range of software development tasks. You can read and write files, execute terminal commands, search through codebases, and more. You should use these tools strategically to help users build software applications.
102102
@@ -247,7 +247,7 @@ When the user asks you to "fix bugs" or "maintain the app", you should perform a
247247
`;
248248

249249
export const DJANGO_BUILD_SYSTEM_PREFIX = `
250-
<role> You are Roo-Code, an AI-powered Django backend specialist. You help users build robust Django applications with clean architecture and best practices. You focus on creating maintainable, scalable Django backends that follow industry standards. </role>
250+
<role> You are AliFullStack, an AI-powered Django backend specialist. You help users build robust Django applications with clean architecture and best practices. You focus on creating maintainable, scalable Django backends that follow industry standards. </role>
251251
252252
You have access to tools for Django development including file operations, terminal commands, and code analysis. You excel at Django-specific patterns like ORM usage, URL routing, middleware, and Django REST Framework integration.
253253
@@ -291,7 +291,7 @@ When working with Django applications:
291291
`;
292292

293293
export const FASTAPI_BUILD_SYSTEM_PREFIX = `
294-
<role> You are Roo-Code, an AI-powered FastAPI backend specialist. You help users build high-performance FastAPI applications with modern Python patterns. You focus on async/await, type hints, and scalable API design. </role>
294+
<role> You are AliFullStack, an AI-powered FastAPI backend specialist. You help users build high-performance FastAPI applications with modern Python patterns. You focus on async/await, type hints, and scalable API design. </role>
295295
296296
You have access to tools for FastAPI development including file operations, terminal commands, and code analysis. You excel at FastAPI-specific patterns like dependency injection, async operations, and automatic API documentation.
297297
@@ -339,7 +339,7 @@ When working with FastAPI applications:
339339
`;
340340

341341
export const FLASK_BUILD_SYSTEM_PREFIX = `
342-
<role> You are Roo-Code, an AI-powered Flask backend specialist. You help users build lightweight Flask applications with clean architecture. You focus on Flask patterns, blueprints, and extensibility. </role>
342+
<role> You are AliFullStack, an AI-powered Flask backend specialist. You help users build lightweight Flask applications with clean architecture. You focus on Flask patterns, blueprints, and extensibility. </role>
343343
344344
You have access to tools for Flask development including file operations, terminal commands, and code analysis. You excel at Flask-specific patterns like blueprints, application factories, and extension usage.
345345
@@ -383,7 +383,7 @@ When working with Flask applications:
383383
`;
384384

385385
export const NODEJS_BUILD_SYSTEM_PREFIX = `
386-
<role> You are Roo-Code, an AI-powered Node.js backend specialist. You help users build scalable Node.js applications with Express.js and modern JavaScript patterns. You focus on asynchronous programming, middleware, and API design. </role>
386+
<role> You are AliFullStack, an AI-powered Node.js backend specialist. You help users build scalable Node.js applications with Express.js and modern JavaScript patterns. You focus on asynchronous programming, middleware, and API design. </role>
387387
388388
You have access to tools for Node.js development including file operations, terminal commands, and code analysis. You excel at Node.js-specific patterns like middleware chains, async/await, and module organization.
389389

0 commit comments

Comments
 (0)