@mindstudio-ai/remy 0.1.32 → 0.1.34
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.
package/dist/headless.js
CHANGED
|
@@ -2194,14 +2194,15 @@ async function runSubAgent(config) {
|
|
|
2194
2194
|
const contentBlocks = [];
|
|
2195
2195
|
let thinkingStartedAt = 0;
|
|
2196
2196
|
let stopReason = "end_turn";
|
|
2197
|
+
const fullSystem = `${system}
|
|
2198
|
+
|
|
2199
|
+
Current date/time: ${(/* @__PURE__ */ new Date()).toISOString().replace("T", " ").replace(/\.\d+Z$/, " UTC")}`;
|
|
2197
2200
|
try {
|
|
2198
2201
|
for await (const event of streamChatWithRetry({
|
|
2199
2202
|
...apiConfig,
|
|
2200
2203
|
model,
|
|
2201
2204
|
subAgentId,
|
|
2202
|
-
system:
|
|
2203
|
-
|
|
2204
|
-
Current date/time: ${(/* @__PURE__ */ new Date()).toISOString().replace("T", " ").replace(/\.\d+Z$/, " UTC")}`,
|
|
2205
|
+
system: fullSystem,
|
|
2205
2206
|
messages: cleanMessagesForApi(messages),
|
|
2206
2207
|
tools,
|
|
2207
2208
|
signal
|
|
@@ -2648,7 +2649,7 @@ var DESIGN_EXPERT_TOOLS = [
|
|
|
2648
2649
|
},
|
|
2649
2650
|
{
|
|
2650
2651
|
name: "runBrowserTest",
|
|
2651
|
-
description: "Run an automated browser test against the live app preview. Use to verify implementation details via getComputedStyle: font-family names, exact colors, spacing, borders, shadows, font sizes, transforms.
|
|
2652
|
+
description: "Run an automated browser test against the live app preview. Use to verify implementation details via getComputedStyle: font-family names, exact colors, spacing, borders, shadows, font sizes, transforms. Only use this to evaluate computed CSS properties that can't be deduced from sceenshots.",
|
|
2652
2653
|
inputSchema: {
|
|
2653
2654
|
type: "object",
|
|
2654
2655
|
properties: {
|
package/dist/index.js
CHANGED
|
@@ -2157,14 +2157,15 @@ async function runSubAgent(config) {
|
|
|
2157
2157
|
const contentBlocks = [];
|
|
2158
2158
|
let thinkingStartedAt = 0;
|
|
2159
2159
|
let stopReason = "end_turn";
|
|
2160
|
+
const fullSystem = `${system}
|
|
2161
|
+
|
|
2162
|
+
Current date/time: ${(/* @__PURE__ */ new Date()).toISOString().replace("T", " ").replace(/\.\d+Z$/, " UTC")}`;
|
|
2160
2163
|
try {
|
|
2161
2164
|
for await (const event of streamChatWithRetry({
|
|
2162
2165
|
...apiConfig,
|
|
2163
2166
|
model,
|
|
2164
2167
|
subAgentId,
|
|
2165
|
-
system:
|
|
2166
|
-
|
|
2167
|
-
Current date/time: ${(/* @__PURE__ */ new Date()).toISOString().replace("T", " ").replace(/\.\d+Z$/, " UTC")}`,
|
|
2168
|
+
system: fullSystem,
|
|
2168
2169
|
messages: cleanMessagesForApi(messages),
|
|
2169
2170
|
tools,
|
|
2170
2171
|
signal
|
|
@@ -2772,7 +2773,7 @@ var init_tools2 = __esm({
|
|
|
2772
2773
|
},
|
|
2773
2774
|
{
|
|
2774
2775
|
name: "runBrowserTest",
|
|
2775
|
-
description: "Run an automated browser test against the live app preview. Use to verify implementation details via getComputedStyle: font-family names, exact colors, spacing, borders, shadows, font sizes, transforms.
|
|
2776
|
+
description: "Run an automated browser test against the live app preview. Use to verify implementation details via getComputedStyle: font-family names, exact colors, spacing, borders, shadows, font sizes, transforms. Only use this to evaluate computed CSS properties that can't be deduced from sceenshots.",
|
|
2776
2777
|
inputSchema: {
|
|
2777
2778
|
type: "object",
|
|
2778
2779
|
properties: {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
{{prompts/identity.md}}
|
|
2
2
|
|
|
3
|
+
<inspiration_and_reference>
|
|
4
|
+
{{fonts_to_consider}}
|
|
5
|
+
{{inspiration_images}}
|
|
6
|
+
</inspiration_and_reference>
|
|
7
|
+
|
|
3
8
|
<frontend_design_standards>
|
|
4
9
|
{{prompts/frontend-design-notes.md}}
|
|
5
10
|
</frontend_design_standards>
|
|
@@ -12,8 +17,4 @@
|
|
|
12
17
|
{{prompts/layout.md}}
|
|
13
18
|
</design_guidelines>
|
|
14
19
|
|
|
15
|
-
{{fonts_to_consider}}
|
|
16
|
-
|
|
17
|
-
{{inspiration_images}}
|
|
18
|
-
|
|
19
20
|
{{prompts/instructions.md}}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
- Use `analyzeReferenceImageOrUrl` to analyze any image URL or website URL. Websites are automatically screenshotted. Omit the prompt for a standard design analysis, or provide a custom prompt for specific questions. Do not screenshot font specimen pages, documentation, or other text-heavy pages — use `fetchUrl` for those instead.
|
|
4
4
|
- Use `screenshot` to see the current state of the app preview. This is your primary tool for visual review. Use `fullPage: true` to see the entire page at once. Remember, the screenshot analysis is not overly precise - for example, it cannot reliably identify specific fonts by name — it can only describe what letterforms look like.
|
|
5
|
-
- Use `runBrowserTest` to
|
|
6
|
-
- **screenshot vs runBrowserTest**: Screenshot to *see* the page. Browser test to *measure* specific values you're unsure about. Start with a screenshot — only reach for the browser agent if something looks off or can't be judged visually.
|
|
5
|
+
- Use `runBrowserTest` to verify and understand things you have flagged as being incorrect by analyzing the screenshot by checking their CSS properties. Describe everything you need in one call to the tool, it can do many things at once.
|
|
6
|
+
- **screenshot vs runBrowserTest**: Screenshot to *see* the page. Browser test to *measure* specific values you're unsure about. Start with a screenshot — only reach for the browser agent if something looks off or can't be judged visually. Your `screenshot` tool with `fullPage: true` captures the entire page in one call.
|
|
7
7
|
Use `searchGoogle` for research: modern design trends in industries or verticals, "best [domain] apps 2026", ui patterns, etc. Prioritize authoritative sources like Figma and other design leaders, avoid random blog spam. Pick one or more URLs and use `fetchUrl` to get their text content to read and inform your inspiration.
|
|
8
8
|
- Use `fetchUrl` when you need to get the text content of a site.
|
|
9
9
|
- Use `searchGoogle` and `fetchUrl` only when the user references something specific: a particular website to match, a brand to look up, a company whose identity you need to research. You already have curated fonts, inspiration references, and strong internal knowledge — don't search the web for generic inspiration or "best X apps." The web is for specific lookups, not creative direction.
|