@loadmill/droid-cua 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -60,7 +60,7 @@ export async function handleTestDesignCompleteToolCall({ engine, callId, argumen
|
|
|
60
60
|
const addOutput = context?.addOutput || printCliOutput;
|
|
61
61
|
addOutput({
|
|
62
62
|
type: "success",
|
|
63
|
-
text: "Design exploration complete. Generating
|
|
63
|
+
text: "Design exploration complete. Generating test script.",
|
|
64
64
|
eventType: "tool_call",
|
|
65
65
|
runId: context?.runId,
|
|
66
66
|
stepId: stepContext?.stepId,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { appendCustomSections, buildBaseSystemPrompt, isBrowserTarget } from "./base.js";
|
|
2
|
-
|
|
2
|
+
import { buildAppContextSection } from "./execution.js";
|
|
3
|
+
export function buildDesignModePrompt(deviceInfo, customInstructions = {}, appContextText = "") {
|
|
3
4
|
const designCustomText = typeof customInstructions.designModeInstructions === "string" ? customInstructions.designModeInstructions.trim() : "";
|
|
4
5
|
const basePrompt = buildBaseSystemPrompt(deviceInfo, customInstructions);
|
|
6
|
+
const appContextSection = buildAppContextSection(appContextText);
|
|
5
7
|
const browserTarget = isBrowserTarget(deviceInfo);
|
|
6
8
|
const prompt = `${basePrompt}
|
|
7
9
|
|
|
@@ -91,7 +93,7 @@ WRONG Example (DON'T DO THIS):
|
|
|
91
93
|
3. etc...
|
|
92
94
|
\`\`\`
|
|
93
95
|
|
|
94
|
-
Remember: You are autonomous. Explore confidently. Generate simple, executable test scripts
|
|
96
|
+
Remember: You are autonomous. Explore confidently. Generate simple, executable test scripts.${appContextSection ? `\n\n${appContextSection}` : ""}
|
|
95
97
|
`;
|
|
96
98
|
return appendCustomSections(prompt, [
|
|
97
99
|
{ title: "Base Prompt Instructions", text: customInstructions.basePromptInstructions },
|