You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This architecture makes the prompts package the true "brain" of component generation, with both apps being thin clients that consume its orchestration capabilities.
244
+
This architecture makes the prompts package the true "brain" of component generation, with both apps being thin clients that consume its orchestration capabilities.
Copy file name to clipboardExpand all lines: prompts/pkg/prompts.ts
+4-18Lines changed: 4 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,6 @@ export async function getDefaultDependencies(): Promise<string[]> {
54
54
exportinterfaceSystemPromptResult{
55
55
systemPrompt: string;
56
56
dependencies: string[];
57
-
instructionalText: boolean;
58
57
demoData: boolean;
59
58
model: string;
60
59
}
@@ -113,7 +112,6 @@ async function detectModulesInHistory(
113
112
114
113
interfaceLlmSelectionDecisions{
115
114
selected: string[];
116
-
instructionalText: boolean;
117
115
demoData: boolean;
118
116
}
119
117
@@ -170,7 +168,7 @@ async function selectLlmsAndOptions(
170
168
{
171
169
role: "system",
172
170
content:
173
-
'You select which library modules from a catalog should be included AND whether to include instructional UI text and a demo-data button. First analyze if the user prompt describes specific look & feel requirements. For instructional text and demo data: include them only when asked for. Read the JSON payload and return JSON with properties: "selected" (array of catalog "name" strings), "instructionalText" (boolean), and "demoData" (boolean). Only choose modules from the catalog. Include any libraries already used in history. Respond with JSON only.',
171
+
'You select which library modules from a catalog should be included AND whether to include a demo-data button. First analyze if the user prompt describes specific look & feel requirements. For demo data: include it only when asked for. Read the JSON payload and return JSON with properties: "selected" (array of catalog "name" strings) and "demoData" (boolean). Only choose modules from the catalog. Include any libraries already used in history. Respond with JSON only.',
174
172
},
175
173
{role: "user",content: JSON.stringify(payload)},
176
174
];
@@ -185,7 +183,6 @@ async function selectLlmsAndOptions(
0 commit comments