Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(vibe-tests): finish xds→astryx target rename + rename xds-tailwind→astryx-tailwind (#3258)

Cindy Zhang0b5871046463
diff --git a/internal/vibe-tests/app/src/report/CompareView.tsx b/internal/vibe-tests/app/src/report/CompareView.tsx
index 49f487a44a..7916726628 100644
--- a/internal/vibe-tests/app/src/report/CompareView.tsx
+++ b/internal/vibe-tests/app/src/report/CompareView.tsx
@@ -20,7 +20,7 @@ import {
} from './utils';
import './report.css';
-type WinnerType = 'xds' | 'xds-tailwind' | 'baseline' | 'html' | 'tie';
+type WinnerType = 'astryx' | 'astryx-tailwind' | 'baseline' | 'html' | 'tie';
interface CompareViewProps {
comparison: UniversalComparison;
@@ -32,7 +32,7 @@ interface DimRow extends Record<string, unknown> {
astryxScore: number;
baselineScore: number;
htmlScore?: number;
- xdsTailwindScore?: number;
+ astryxTailwindScore?: number;
delta: number;
winner: string;
}
@@ -43,7 +43,7 @@ interface CatRow extends Record<string, unknown> {
astryxOverall: number;
baselineOverall: number;
htmlOverall?: number;
- xdsTailwindOverall?: number;
+ astryxTailwindOverall?: number;
delta: number;
}
@@ -53,7 +53,7 @@ interface CostRow extends Record<string, unknown> {
astryx: string;
baseline: string;
html?: string;
- xdsTailwind?: string;
+ astryxTailwind?: string;
winner: string;
}
@@ -72,7 +72,7 @@ function costWinner(
entries.push(['html', htmlVal]);
}
if (twVal != null) {
- entries.push(['xds-tailwind', twVal]);
+ entries.push(['astryx-tailwind', twVal]);
}
const best = lowerIsBetter
@@ -95,7 +95,7 @@ function winnerBadgeVariant(
return 'error';
case 'html':
return 'warning';
- case 'xds-tailwind':
+ case 'astryx-tailwind':
return 'info';
default:
return 'neutral';
@@ -110,7 +110,7 @@ function winnerLabel(w: string): string {
return 'Baseline';
case 'html':
return 'HTML';
- case 'xds-tailwind':
+ case 'astryx-tailwind':
return 'XDS+TW';
default:
return 'Tie';
@@ -131,15 +131,15 @@ function CostComparisonSection({
astryxCost,
baselineCost,
htmlCost,
- xdsTailwindCost,
+ astryxTailwindCost,
}: {
astryxCost: CostMetrics;
baselineCost: CostMetrics;
htmlCost?: CostMetrics;
- xdsTailwindCost?: CostMetrics;
+ astryxTailwindCost?: CostMetrics;
}) {
const isThreeWay = !!htmlCost;
- const isFourWay = !!xdsTailwindCost;
+ const isFourWay = !!astryxTailwindCost;
const hasDuration =
astryxCost.avgDurationMs > 0 || baselineCost.avgDurationMs > 0;
@@ -156,7 +156,7 @@ function CostComparisonSection({
: {}),
...(isFourWay
? {
- xdsTailwind: `${((xdsTailwindCost?.avgDurationMs ?? 0) / 1000).toFixed(1)}s`,
+ astryxTailwind: `${((astryxTailwindCost?.avgDurationMs ?? 0) / 1000).toFixed(1)}s`,
}
: {}),
winner: costWinner(
@@ -164,7 +164,7 @@ function CostComparisonSection({
baselineCost.avgDurationMs,
true,
htmlCost?.avgDurationMs,
- xdsTailwindCost?.avgDurationMs,
+ astryxTailwindCost?.avgDurationMs,
),
},
]
@@ -179,7 +179,7 @@ function CostComparisonSection({
: {}),
...(isFourWay
? {
- xdsTailwind: `~${xdsTailwindCost?.estimatedInputTokens.toLocaleString()}`,
+ astryxTailwind: `~${astryxTailwindCost?.estimatedInputTokens.toLocaleString()}`,
}
: {}),
winner: costWinner(
@@ -187,7 +187,7 @@ function CostComparisonSection({
baselineCost.estimatedInputTokens,
true,
htmlCost?.estimatedInputTokens,
- xdsTailwindCost?.estimatedInputTokens,
+ astryxTailwindCost?.estimatedInputTokens,
),
},
{
@@ -200,7 +200,7 @@ function CostComparisonSection({
: {}),
...(isFourWay
? {
- xdsTailwind: `~${xdsTailwindCost?.estimatedOutputTokens.toLocaleString()}`,
+ astryxTailwind: `~${astryxTailwindCost?.estimatedOutputTokens.toLocaleString()}`,
}
: {}),
winner: costWinner(
@@ -208,7 +208,7 @@ function CostComparisonSection({
baselineCost.estimatedOutputTokens,
true,
htmlCost?.estimatedOutputTokens,
- xdsTailwindCost?.estimatedOutputTokens,
+ astryxTailwindCost?.estimatedOutputTokens,
),
},
{
@@ -223,7 +223,7 @@ function CostComparisonSection({
: {}),
...(isFourWay
? {
- xdsTailwind: `~${((xdsTailwindCost?.estimatedInputTokens ?? 0) + (xdsTailwindCost?.estimatedOutputTokens ?? 0)).toLocaleString()}`,
+ astryxTailwind: `~${((astryxTailwindCost?.estimatedInputTokens ?? 0) + (astryxTailwindCost?.estimatedOutputTokens ?? 0)).toLocaleString()}`,
}
: {}),
winner: costWinner(
@@ -233,9 +233,9 @@ function CostComparisonSection({
htmlCost
? htmlCost.estimatedInputTokens + htmlCost.estimatedOutputTokens
: undefined,
- xdsTailwindCost
- ? xdsTailwindCost.estimatedInputTokens +
- xdsTailwindCost.estimatedOutputTokens
+ astryxTailwindCost
+ ? astryxTailwindCost.estimatedInputTokens +
+ astryxTailwindCost.estimatedOutputTokens
: undefined,
),
},
@@ -246,14 +246,14 @@ function CostComparisonSection({
baseline: String(baselineCost.avgOutputLines),
...(isThreeWay ? {html: String(htmlCost?.avgOutputLines)} : {}),
...(isFourWay
- ? {xdsTailwind: String(xdsTailwindCost?.avgOutputLines)}
+ ? {astryxTailwind: String(astryxTailwindCost?.avgOutputLines)}
: {}),
winner: costWinner(
astryxCost.avgOutputLines,
baselineCost.avgOutputLines,
true,
htmlCost?.avgOutputLines,
- xdsTailwindCost?.avgOutputLines,
+ astryxTailwindCost?.avgOutputLines,
),
},
{
@@ -262,7 +262,9 @@ function CostComparisonSection({
astryx: String(astryxCost.avgDocsRead),
baseline: String(baselineCost.avgDocsRead),
...(isThreeWay ? {html: String(htmlCost?.avgDocsRead)} : {}),
- ...(isFourWay ? {xdsTailwind: String(xdsTailwindCost?.avgDocsRead)} : {}),
+ ...(isFourWay
+ ? {astryxTailwind: String(astryxTailwindCost?.avgDocsRead)}
+ : {}),
winner: 'tie', // not inherently better or worse
},
];
@@ -293,10 +295,10 @@ function CostComparisonSection({
...(isFourWay
? [
{
- key: 'xdsTailwind' as const,
+ key: 'astryxTailwind' as const,
header: 'XDS+TW',
renderCell: (row: CostRow) => (
- <Text type="body">{row.xdsTailwind ?? '—'}</Text>
+ <Text type="body">{row.astryxTailwind ?? '—'}</Text>
),
} satisfies TableColumn<CostRow>,
]
@@ -325,14 +327,14 @@ function CostComparisonSection({
}
export function CompareView({comparison}: CompareViewProps) {
- const {xds, baseline, html, xdsTailwind, winners} = comparison;
+ const {astryx, baseline, html, astryxTailwind, winners} = comparison;
const isThreeWay = !!html;
- const isFourWay = !!xdsTailwind;
+ const isFourWay = !!astryxTailwind;
let astryxWins = 0;
let baselineWins = 0;
let htmlWins = 0;
- let xdsTailwindWins = 0;
+ let astryxTailwindWins = 0;
let ties = 0;
for (const dim of ALL_DIMENSIONS) {
const w = winners[dim];
@@ -342,8 +344,8 @@ export function CompareView({comparison}: CompareViewProps) {
baselineWins++;
} else if (w === 'html') {
htmlWins++;
- } else if (w === 'xds-tailwind') {
- xdsTailwindWins++;
+ } else if (w === 'astryx-tailwind') {
+ astryxTailwindWins++;
} else {
ties++;
}
@@ -357,7 +359,9 @@ export function CompareView({comparison}: CompareViewProps) {
astryxScore: astryx.averages[dim] ?? 0,
baselineScore: baseline.averages[dim] ?? 0,
...(isThreeWay ? {htmlScore: html?.averages[dim] ?? 0} : {}),
- ...(isFourWay ? {xdsTailwindScore: xdsTailwind?.averages[dim] ?? 0} : {}),
+ ...(isFourWay
+ ? {astryxTailwindScore: astryxTailwind?.averages[dim] ?? 0}
+ : {}),
delta: (astryx.averages[dim] ?? 0) - (baseline.averages[dim] ?? 0),
winner: winners[dim],
}));
@@ -394,12 +398,12 @@ export function CompareView({comparison}: CompareViewProps) {
...(isFourWay
? [
{
- key: 'xdsTailwindScore' as const,
+ key: 'astryxTailwindScore' as const,
header: 'XDS+TW',
renderCell: (row: DimRow) => (
<Text type="body">
- {row.xdsTailwindScore != null
- ? formatScore(row.xdsTailwindScore)
+ {row.astryxTailwindScore != null
+ ? formatScore(row.astryxTailwindScore)
: '—'}
</Text>
),
@@ -432,7 +436,7 @@ export function CompareView({comparison}: CompareViewProps) {
...Object.keys(astryx.byCategory),
...Object.keys(baseline.byCategory),
...(html ? Object.keys(html.byCategory) : []),
- ...(xdsTailwind ? Object.keys(xdsTailwind.byCategory) : []),
+ ...(astryxTailwind ? Object.keys(astryxTailwind.byCategory) : []),
]);
const catData: CatRow[] = [...allCategories].map(cat => {
@@ -443,7 +447,7 @@ export function CompareView({comparison}: CompareViewProps) {
html?.byCategory[cat] ?? (htmlInit as Record<UniversalDimension, number>);
const twInit = {};
const twCat =
- xdsTailwind?.byCategory[cat] ??
+ astryxTailwind?.byCategory[cat] ??
(twInit as Record<UniversalDimension, number>);
const astryxAvg =
CODE_DIMENSIONS.reduce(
@@ -473,7 +477,7 @@ export function CompareView({comparison}: CompareViewProps) {
astryxOverall: astryxAvg,
baselineOverall: baseAvg,
...(htmlAvg != null ? {htmlOverall: htmlAvg} : {}),
- ...(twAvg != null ? {xdsTailwindOverall: twAvg} : {}),
+ ...(twAvg != null ? {astryxTailwindOverall: twAvg} : {}),
delta: astryxAvg - baseAvg,
};
});
@@ -510,12 +514,12 @@ export function CompareView({comparison}: CompareViewProps) {
...(isFourWay
? [
{
- key: 'xdsTailwindOverall' as const,
+ key: 'astryxTailwindOverall' as const,
header: 'XDS+TW',
renderCell: (row: CatRow) => (
<Text type="body">
- {row.xdsTailwindOverall != null
- ? formatScore(row.xdsTailwindOverall)
+ {row.astryxTailwindOverall != null
+ ? formatScore(row.astryxTailwindOverall)
: '—'}
</Text>
),
@@ -584,7 +588,9 @@ export function CompareView({comparison}: CompareViewProps) {
<VStack gap={2}>
<Text type="label">XDS+TW Wins</Text>
<Heading level={2}>
- <span className="report-color-info">{xdsTailwindWins}</span>
+ <span className="report-color-info">
+ {astryxTailwindWins}
+ </span>
</Heading>
</VStack>
</div>
@@ -633,7 +639,7 @@ export function CompareView({comparison}: CompareViewProps) {
astryxCost={astryx.cost}
baselineCost={baseline.cost}
htmlCost={html?.cost}
- xdsTailwindCost={xdsTailwind?.cost}
+ astryxTailwindCost={astryxTailwind?.cost}
/>
</VStack>
)}
diff --git a/internal/vibe-tests/app/src/report/PromptDetailCard.tsx b/internal/vibe-tests/app/src/report/PromptDetailCard.tsx
index a3bf10ecbc..4d337d33a8 100644
--- a/internal/vibe-tests/app/src/report/PromptDetailCard.tsx
+++ b/internal/vibe-tests/app/src/report/PromptDetailCard.tsx
@@ -96,12 +96,14 @@ interface PromptDetailCardProps {
astryxScore?: UniversalScore;
baselineScore?: UniversalScore;
htmlScore?: UniversalScore;
- xdsTailwindScore?: UniversalScore;
+ astryxTailwindScore?: UniversalScore;
hasXdsCode: boolean;
hasBaselineCode: boolean;
hasHtmlCode: boolean;
hasXdsTailwindCode: boolean;
- onViewCode: (target: 'xds' | 'baseline' | 'html' | 'xds-tailwind') => void;
+ onViewCode: (
+ target: 'astryx' | 'baseline' | 'html' | 'astryx-tailwind',
+ ) => void;
/** Relative preview URLs keyed by target (e.g. { astryx: "previews/sd-1/astryx.html" }) */
previewUrls?: Record<string, string>;
}
@@ -112,7 +114,7 @@ export function PromptDetailCard({
astryxScore,
baselineScore,
htmlScore,
- xdsTailwindScore,
+ astryxTailwindScore,
hasXdsCode,
hasBaselineCode,
hasHtmlCode,
@@ -124,7 +126,7 @@ export function PromptDetailCard({
previewUrls?.astryx ||
previewUrls?.baseline ||
previewUrls?.html ||
- previewUrls?.['xds-tailwind'];
+ previewUrls?.['astryx-tailwind'];
const hasAnyCode =
hasXdsCode || hasBaselineCode || hasHtmlCode || hasXdsTailwindCode;
@@ -133,7 +135,7 @@ export function PromptDetailCard({
astryxScore,
baselineScore,
htmlScore,
- xdsTailwindScore,
+ astryxTailwindScore,
].filter(Boolean).length;
const scoresClassName =
scoreCount >= 4
@@ -182,12 +184,12 @@ export function PromptDetailCard({
label="HTML Preview"
/>
)}
- {previewUrls?.['xds-tailwind'] && (
+ {previewUrls?.['astryx-tailwind'] && (
<Button
variant="secondary"
size="sm"
onClick={() =>
- window.open(previewUrls['xds-tailwind'], '_blank')
+ window.open(previewUrls['astryx-tailwind'], '_blank')
}
label="XDS+TW Preview"
/>
@@ -220,7 +222,7 @@ export function PromptDetailCard({
<Button
variant="ghost"
size="sm"
- onClick={() => onViewCode('xds-tailwind')}
+ onClick={() => onViewCode('astryx-tailwind')}
label="XDS+TW Code"
/>
)}
@@ -229,15 +231,20 @@ export function PromptDetailCard({
</div>
{/* Score summaries in constrained grid */}
- {(astryxScore || baselineScore || htmlScore || xdsTailwindScore) && (
+ {(astryxScore ||
+ baselineScore ||
+ htmlScore ||
+ astryxTailwindScore) && (
<div className={scoresClassName}>
- {astryxScore && <ScoreSummary label="Astryx" score={astryxScore} />}
+ {astryxScore && (
+ <ScoreSummary label="Astryx" score={astryxScore} />
+ )}
{baselineScore && (
<ScoreSummary label="Baseline" score={baselineScore} />
)}
{htmlScore && <ScoreSummary label="HTML" score={htmlScore} />}
- {xdsTailwindScore && (
- <ScoreSummary label="XDS+TW" score={xdsTailwindScore} />
+ {astryxTailwindScore && (
+ <ScoreSummary label="XDS+TW" score={astryxTailwindScore} />
)}
</div>
)}
@@ -279,14 +286,14 @@ export function PromptDetailCard({
</>
)}
- {xdsTailwindScore && (
+ {astryxTailwindScore && (
<>
<Divider />
<div className="report-promptDetail-section">
<div className="report-promptDetail-sectionLabel">
<Text type="label">XDS+TW Findings</Text>
</div>
- <Findings score={xdsTailwindScore} />
+ <Findings score={astryxTailwindScore} />
</div>
</>
)}
diff --git a/internal/vibe-tests/app/src/report/Report.tsx b/internal/vibe-tests/app/src/report/Report.tsx
index 88b708d44a..9669b8b1a9 100644
--- a/internal/vibe-tests/app/src/report/Report.tsx
+++ b/internal/vibe-tests/app/src/report/Report.tsx
@@ -171,7 +171,7 @@ export function Report() {
const [activeTab, setActiveTab] = useState('overview');
const [codeModal, setCodeModal] = useState<{
promptId: string;
- target: 'xds' | 'baseline' | 'html' | 'xds-tailwind';
+ target: 'astryx' | 'baseline' | 'html' | 'astryx-tailwind';
} | null>(null);
const data: ReportData | undefined = window.__REPORT_DATA__;
@@ -215,9 +215,7 @@ export function Report() {
<Text type="supporting">Target: {data.target}</Text>
)}
{data.iterationId && (
- <Text type="supporting">
- Iteration: {data.iterationId}
- </Text>
+ <Text type="supporting">Iteration: {data.iterationId}</Text>
)}
</VStack>
<Button
@@ -258,11 +256,11 @@ export function Report() {
compareLabel="HTML"
/>
)}
- {comparison?.xdsTailwind && (
+ {comparison?.astryxTailwind && (
<ScoreCard
label="Overall Score vs XDS+TW"
score={universal.overall}
- compareScore={comparison.xdsTailwind.overall}
+ compareScore={comparison.astryxTailwind.overall}
compareLabel="XDS+TW"
/>
)}
@@ -298,7 +296,7 @@ export function Report() {
'Astryx',
'Baseline',
comparison.html ? 'HTML' : null,
- comparison.xdsTailwind ? 'XDS+TW' : null,
+ comparison.astryxTailwind ? 'XDS+TW' : null,
]
.filter(Boolean)
.join(' vs ')}{' '}
@@ -325,14 +323,14 @@ export function Report() {
astryxScore={universal.byPrompt[promptId]}
baselineScore={comparison?.baseline.byPrompt[promptId]}
htmlScore={comparison?.html?.byPrompt[promptId]}
- xdsTailwindScore={
- comparison?.xdsTailwind?.byPrompt[promptId]
+ astryxTailwindScore={
+ comparison?.astryxTailwind?.byPrompt[promptId]
}
hasXdsCode={!!data.sourceCode?.[promptId]}
hasBaselineCode={!!data.baselineSourceCode?.[promptId]}
hasHtmlCode={!!data.htmlSourceCode?.[promptId]}
hasXdsTailwindCode={
- !!data.xdsTailwindSourceCode?.[promptId]
+ !!data.astryxTailwindSourceCode?.[promptId]
}
onViewCode={target => setCodeModal({promptId, target})}
previewUrls={data.previews?.[promptId]}
@@ -350,8 +348,8 @@ export function Report() {
? data.sourceCode?.[codeModal.promptId]
: codeModal.target === 'baseline'
? data.baselineSourceCode?.[codeModal.promptId]
- : codeModal.target === 'xds-tailwind'
- ? data.xdsTailwindSourceCode?.[codeModal.promptId]
+ : codeModal.target === 'astryx-tailwind'
+ ? data.astryxTailwindSourceCode?.[codeModal.promptId]
: data.htmlSourceCode?.[codeModal.promptId];
return code ? (
<CodeModal
diff --git a/internal/vibe-tests/app/src/report/types.ts b/internal/vibe-tests/app/src/report/types.ts
index b202e467cd..5b6679d92a 100644
--- a/internal/vibe-tests/app/src/report/types.ts
+++ b/internal/vibe-tests/app/src/report/types.ts
@@ -31,7 +31,7 @@ export interface ReportData {
sourceCode?: Record<string, string>;
baselineSourceCode?: Record<string, string>;
htmlSourceCode?: Record<string, string>;
- xdsTailwindSourceCode?: Record<string, string>;
+ astryxTailwindSourceCode?: Record<string, string>;
/** Map of promptId → { target → relative URL } */
previews?: Record<string, Record<string, string>>;
/** Map of promptId → prompt text */
diff --git a/internal/vibe-tests/environments/project-xds-tailwind/README.md b/internal/vibe-tests/environments/project-astryx-tailwind/README.md
similarity index 93%
rename from internal/vibe-tests/environments/project-xds-tailwind/README.md
rename to internal/vibe-tests/environments/project-astryx-tailwind/README.md
index 9277e55c76..623ffbd7da 100644
--- a/internal/vibe-tests/environments/project-xds-tailwind/README.md
+++ b/internal/vibe-tests/environments/project-astryx-tailwind/README.md
@@ -23,7 +23,10 @@ import {XDSButton} from '@astryxdesign/core/Button';
import {XDSIconButton} from '@astryxdesign/core/IconButton';
import {XDSCard} from '@astryxdesign/core/Card';
import {XDSText, XDSHeading} from '@astryxdesign/core/Text';
-import {XDSToggleButton, XDSToggleButtonGroup} from '@astryxdesign/core/ToggleButton';
+import {
+ XDSToggleButton,
+ XDSToggleButtonGroup,
+} from '@astryxdesign/core/ToggleButton';
import {XDSTheme} from '@astryxdesign/core/theme';
```
diff --git a/internal/vibe-tests/environments/project-xds-tailwind/globals.css b/internal/vibe-tests/environments/project-astryx-tailwind/globals.css
similarity index 100%
rename from internal/vibe-tests/environments/project-xds-tailwind/globals.css
rename to internal/vibe-tests/environments/project-astryx-tailwind/globals.css
diff --git a/internal/vibe-tests/environments/project-xds-tailwind/package.json b/internal/vibe-tests/environments/project-astryx-tailwind/package.json
similarity index 100%
rename from internal/vibe-tests/environments/project-xds-tailwind/package.json
rename to internal/vibe-tests/environments/project-astryx-tailwind/package.json
diff --git a/internal/vibe-tests/src/build-previews.ts b/internal/vibe-tests/src/build-previews.ts
index b1d337a52e..c3d5a3acc7 100644
--- a/internal/vibe-tests/src/build-previews.ts
+++ b/internal/vibe-tests/src/build-previews.ts
@@ -154,9 +154,9 @@ function createEntryFile(
const entryPath = path.join(tmpDir, 'entry.tsx');
// For XDS and XDS+Tailwind targets, wrap in theme provider and import reset
- if (target === 'astryx' || target === 'xds-tailwind') {
+ if (target === 'astryx' || target === 'astryx-tailwind') {
const tailwindImport =
- target === 'xds-tailwind'
+ target === 'astryx-tailwind'
? `\nimport '${path.join(REPO_ROOT, 'packages/core/src/tailwind-theme.css').replace(/\\/g, '/')}';`
: '';
fs.writeFileSync(
@@ -205,9 +205,9 @@ function createIndexHtml(
): string {
const htmlPath = path.join(tmpDir, 'index.html');
- // Baseline and xds-tailwind previews need Tailwind CSS for styling
+ // Baseline and astryx-tailwind previews need Tailwind CSS for styling
const tailwindCdn =
- target === 'baseline' || target === 'xds-tailwind'
+ target === 'baseline' || target === 'astryx-tailwind'
? `\n <script src="https://cdn.tailwindcss.com"></script>
<style>
:root {
@@ -296,7 +296,7 @@ function createViteConfig(tmpDir: string, target: string): string {
// type casts). We use a pre-transform plugin to strip TypeScript type
// assertions before StyleX processes the file.
const plugins =
- target === 'astryx' || target === 'xds-tailwind'
+ target === 'astryx' || target === 'astryx-tailwind'
? `
{
name: 'stylex-inline-vars',
@@ -368,7 +368,7 @@ function createViteConfig(tmpDir: string, target: string): string {
viteSingleFile(),`;
const imports =
- target === 'astryx' || target === 'xds-tailwind'
+ target === 'astryx' || target === 'astryx-tailwind'
? `import stylex from '@stylexjs/unplugin';
import react from '@vitejs/plugin-react';
import {viteSingleFile} from 'vite-plugin-singlefile';`
@@ -389,7 +389,7 @@ import {viteSingleFile} from 'vite-plugin-singlefile';`;
},`;
const aliases =
- target === 'astryx' || target === 'xds-tailwind'
+ target === 'astryx' || target === 'astryx-tailwind'
? xdsAliases
: target === 'baseline'
? `
@@ -533,7 +533,7 @@ type BuildErrors = Record<string, TscResult>;
*/
function getTsconfigForTarget(target: string): string {
switch (target) {
- case 'xds-tailwind':
+ case 'astryx-tailwind':
case 'astryx':
return path.join(VIBE_DIR, 'tsconfig.astryx.json');
case 'baseline':
@@ -732,7 +732,7 @@ async function main() {
console.log(` 📄 ${promptId} (${target})...`);
// Auto-fix missing XDS imports before building
- if (target === 'astryx' || target === 'xds-tailwind') {
+ if (target === 'astryx' || target === 'astryx-tailwind') {
const autoImported = fixMissingXDSImports(componentPath);
if (autoImported.length > 0) {
console.log(` ⚡ Auto-imported: ${autoImported.join(', ')}`);
@@ -747,7 +747,7 @@ async function main() {
const ok = buildPreview(componentPath, target, promptId, previewPath);
if (ok) {
// Post-build validation: ensure no unresolved XDS references
- if (target === 'astryx' || target === 'xds-tailwind') {
+ if (target === 'astryx' || target === 'astryx-tailwind') {
const unresolved = validatePreviewHtml(previewPath);
if (unresolved.length > 0) {
console.error(
diff --git a/internal/vibe-tests/src/build-report.ts b/internal/vibe-tests/src/build-report.ts
index 36b37c368d..9dfd0b9df9 100644
--- a/internal/vibe-tests/src/build-report.ts
+++ b/internal/vibe-tests/src/build-report.ts
@@ -77,7 +77,7 @@ function parseArgs(): {
iteration: string;
baseline?: string;
html?: string;
- xdsTailwind?: string;
+ astryxTailwind?: string;
withScreenshots: boolean;
dev: boolean;
} {
@@ -85,7 +85,7 @@ function parseArgs(): {
let iteration = '';
let baseline: string | undefined;
let html: string | undefined;
- let xdsTailwind: string | undefined;
+ let astryxTailwind: string | undefined;
let withScreenshots = false;
let dev = false;
@@ -99,8 +99,8 @@ function parseArgs(): {
} else if (args[i] === '--html' && args[i + 1]) {
html = args[i + 1];
i++;
- } else if (args[i] === '--xds-tailwind' && args[i + 1]) {
- xdsTailwind = args[i + 1];
+ } else if (args[i] === '--astryx-tailwind' && args[i + 1]) {
+ astryxTailwind = args[i + 1];
i++;
} else if (args[i] === '--with-screenshots') {
withScreenshots = true;
@@ -111,12 +111,12 @@ function parseArgs(): {
if (!iteration) {
console.error(
- 'Usage: tsx src/build-report.ts --iteration <id> [--baseline <id>] [--html <id>] [--xds-tailwind <id>] [--with-screenshots] [--dev]',
+ 'Usage: tsx src/build-report.ts --iteration <id> [--baseline <id>] [--html <id>] [--astryx-tailwind <id>] [--with-screenshots] [--dev]',
);
process.exit(1);
}
- return {iteration, baseline, html, xdsTailwind, withScreenshots, dev};
+ return {iteration, baseline, html, astryxTailwind, withScreenshots, dev};
}
function ensureUniversalJson(iteration: string): UniversalAggregate {
@@ -138,28 +138,30 @@ function ensureComparison(
xdsId: string,
baselineId: string,
htmlId?: string,
- xdsTailwindId?: string,
+ astryxTailwindId?: string,
): UniversalComparison {
const resultsDir = getResultsDir();
const idParts = [xdsId, baselineId];
if (htmlId) {
idParts.push(htmlId);
}
- if (xdsTailwindId) {
- idParts.push(xdsTailwindId);
+ if (astryxTailwindId) {
+ idParts.push(astryxTailwindId);
}
const comparisonFilename = `comparison-${idParts.join('-')}.json`;
const comparisonPath = path.join(resultsDir, comparisonFilename);
if (!fs.existsSync(comparisonPath)) {
const htmlFlag = htmlId ? ` --html ${htmlId}` : '';
- const twFlag = xdsTailwindId ? ` --xds-tailwind ${xdsTailwindId}` : '';
- const vsLabel = [baselineId, htmlId, xdsTailwindId]
+ const twFlag = astryxTailwindId
+ ? ` --astryx-tailwind ${astryxTailwindId}`
+ : '';
+ const vsLabel = [baselineId, htmlId, astryxTailwindId]
.filter(Boolean)
.join(' vs ');
console.log(`Generating comparison for ${xdsId} vs ${vsLabel}...`);
execSync(
- `tsx ${path.join(import.meta.dirname, 'universal-compare.ts')} --xds ${xdsId} --baseline ${baselineId}${htmlFlag}${twFlag}`,
+ `tsx ${path.join(import.meta.dirname, 'universal-compare.ts')} --astryx ${xdsId} --baseline ${baselineId}${htmlFlag}${twFlag}`,
{cwd: path.join(import.meta.dirname, '..'), stdio: 'inherit'},
);
}
@@ -198,7 +200,7 @@ function buildDataScript(opts: {
sourceCode?: Record<string, string>;
baselineSourceCode?: Record<string, string>;
htmlSourceCode?: Record<string, string>;
- xdsTailwindSourceCode?: Record<string, string>;
+ astryxTailwindSourceCode?: Record<string, string>;
previews?: Record<string, Record<string, string>>;
screenshots?: Record<string, string>;
prompts?: Record<string, string>;
@@ -211,7 +213,7 @@ function buildDataScript(opts: {
sourceCode: opts.sourceCode,
baselineSourceCode: opts.baselineSourceCode,
htmlSourceCode: opts.htmlSourceCode,
- xdsTailwindSourceCode: opts.xdsTailwindSourceCode,
+ astryxTailwindSourceCode: opts.astryxTailwindSourceCode,
previews: opts.previews,
screenshots: opts.screenshots,
prompts: opts.prompts,
@@ -265,7 +267,7 @@ async function main() {
iteration,
baseline,
html,
- xdsTailwind,
+ astryxTailwind,
withScreenshots: _withScreenshots,
dev,
} = parseArgs();
@@ -292,10 +294,10 @@ async function main() {
if (html) {
ensureUniversalJson(html);
}
- if (xdsTailwind) {
- ensureUniversalJson(xdsTailwind);
+ if (astryxTailwind) {
+ ensureUniversalJson(astryxTailwind);
}
- comparison = ensureComparison(iteration, baseline, html, xdsTailwind);
+ comparison = ensureComparison(iteration, baseline, html, astryxTailwind);
}
// Step 3: Load source code for per-prompt inspection
@@ -348,17 +350,17 @@ async function main() {
}
}
- let xdsTailwindSourceCode: Record<string, string> | undefined;
- if (xdsTailwind) {
- xdsTailwindSourceCode = {};
- const twCodeDir = path.join(resultsDir, xdsTailwind, 'results');
+ let astryxTailwindSourceCode: Record<string, string> | undefined;
+ if (astryxTailwind) {
+ astryxTailwindSourceCode = {};
+ const twCodeDir = path.join(resultsDir, astryxTailwind, 'results');
if (fs.existsSync(twCodeDir)) {
ensureTsxFiles(twCodeDir);
for (const file of fs
.readdirSync(twCodeDir)
.filter(f => f.endsWith('.tsx'))) {
const promptId = path.basename(file, '.tsx');
- xdsTailwindSourceCode[promptId] = fs.readFileSync(
+ astryxTailwindSourceCode[promptId] = fs.readFileSync(
path.join(twCodeDir, file),
'utf-8',
);
@@ -383,7 +385,7 @@ async function main() {
// Screenshots use relative paths (screenshots/filename.png) that resolve
// when deployed to gh-pages alongside the report.
let screenshots: Record<string, string> | undefined;
- for (const id of [iteration, baseline, html, xdsTailwind].filter(
+ for (const id of [iteration, baseline, html, astryxTailwind].filter(
Boolean,
) as string[]) {
const screenshotManifestPath = path.join(
@@ -441,7 +443,7 @@ async function main() {
sourceCode,
baselineSourceCode,
htmlSourceCode,
- xdsTailwindSourceCode,
+ astryxTailwindSourceCode,
previews,
screenshots,
prompts,
diff --git a/internal/vibe-tests/src/correct-previews.ts b/internal/vibe-tests/src/correct-previews.ts
index de4b75ade7..7062e148fd 100644
--- a/internal/vibe-tests/src/correct-previews.ts
+++ b/internal/vibe-tests/src/correct-previews.ts
@@ -62,7 +62,7 @@ interface CorrectionTask {
* Gives the LLM the actual API surface to fix against.
*/
function getComponentDocs(code: string, target: string): string {
- if (target !== 'xds') {
+ if (target !== 'astryx' && target !== 'astryx-tailwind') {
return '';
}
diff --git a/internal/vibe-tests/src/deploy-report.ts b/internal/vibe-tests/src/deploy-report.ts
index 10f3df66c3..748b9e42ee 100644
--- a/internal/vibe-tests/src/deploy-report.ts
+++ b/internal/vibe-tests/src/deploy-report.ts
@@ -25,7 +25,7 @@ function parseArgs(): {
iteration: string;
baseline?: string;
html?: string;
- xdsTailwind?: string;
+ astryxTailwind?: string;
dryRun: boolean;
skipPreviews: boolean;
} {
@@ -33,7 +33,7 @@ function parseArgs(): {
let iteration = '';
let baseline: string | undefined;
let html: string | undefined;
- let xdsTailwind: string | undefined;
+ let astryxTailwind: string | undefined;
let dryRun = false;
let skipPreviews = false;
@@ -44,8 +44,8 @@ function parseArgs(): {
baseline = args[++i];
} else if (args[i] === '--html' && args[i + 1]) {
html = args[++i];
- } else if (args[i] === '--xds-tailwind' && args[i + 1]) {
- xdsTailwind = args[++i];
+ } else if (args[i] === '--astryx-tailwind' && args[i + 1]) {
+ astryxTailwind = args[++i];
} else if (args[i] === '--dry-run') {
dryRun = true;
} else if (args[i] === '--skip-previews') {
@@ -55,12 +55,12 @@ function parseArgs(): {
if (!iteration) {
console.error(
- 'Usage: tsx src/deploy-report.ts --iteration <id> [--baseline <id>] [--html <id>] [--xds-tailwind <id>] [--dry-run] [--skip-previews]',
+ 'Usage: tsx src/deploy-report.ts --iteration <id> [--baseline <id>] [--html <id>] [--astryx-tailwind <id>] [--dry-run] [--skip-previews]',
);
process.exit(1);
}
- return {iteration, baseline, html, xdsTailwind, dryRun, skipPreviews};
+ return {iteration, baseline, html, astryxTailwind, dryRun, skipPreviews};
}
function run(cmd: string, opts?: {cwd?: string; silent?: boolean}): string {
@@ -74,7 +74,7 @@ function runSilent(cmd: string, opts?: {cwd?: string}): string {
}
async function main() {
- const {iteration, baseline, html, xdsTailwind, dryRun, skipPreviews} =
+ const {iteration, baseline, html, astryxTailwind, dryRun, skipPreviews} =
parseArgs();
const deployPath = `reports/${iteration}`;
@@ -93,7 +93,7 @@ async function main() {
// Step 1: Build previews if result files exist (.tsx or .json)
if (!skipPreviews) {
const iterationsWithCode: string[] = [];
- for (const id of [iteration, baseline, html, xdsTailwind].filter(
+ for (const id of [iteration, baseline, html, astryxTailwind].filter(
Boolean,
) as string[]) {
const codeDir = path.join(VIBE_DIR, 'results', id, 'results');
@@ -133,8 +133,8 @@ async function main() {
if (html) {
buildArgs.push(`--html ${html}`);
}
- if (xdsTailwind) {
- buildArgs.push(`--xds-tailwind ${xdsTailwind}`);
+ if (astryxTailwind) {
+ buildArgs.push(`--astryx-tailwind ${astryxTailwind}`);
}
run(`npx tsx src/build-report.ts ${buildArgs.join(' ')}`, {cwd: VIBE_DIR});
@@ -202,7 +202,7 @@ async function main() {
}
// Second: copy any local screenshots (may add to or overwrite gh-pages ones)
- for (const id of [iteration, baseline, html, xdsTailwind].filter(
+ for (const id of [iteration, baseline, html, astryxTailwind].filter(
Boolean,
) as string[]) {
const screenshotsDir = path.join(VIBE_DIR, 'results', id, 'screenshots');
diff --git a/internal/vibe-tests/src/screenshot.ts b/internal/vibe-tests/src/screenshot.ts
index 676775773c..23c4c6e47d 100644
--- a/internal/vibe-tests/src/screenshot.ts
+++ b/internal/vibe-tests/src/screenshot.ts
@@ -51,15 +51,15 @@ function parseArgs(): {iteration: string; prompt?: string} {
function generatePreviewCode(
componentPath: string,
- target: 'astryx' | 'baseline' | 'xds-tailwind',
+ target: 'astryx' | 'baseline' | 'astryx-tailwind',
): string {
const relPath = path.relative(path.join(APP_DIR, 'src'), componentPath);
const importPath = relPath.replace(/\.tsx$/, '').replace(/\\/g, '/');
- if (target === 'astryx' || target === 'xds-tailwind') {
+ if (target === 'astryx' || target === 'astryx-tailwind') {
// XDS+Tailwind uses the same XDS wrapper but also imports Tailwind CSS
const tailwindImport =
- target === 'xds-tailwind' ? `\nimport '../tailwind.css';` : '';
+ target === 'astryx-tailwind' ? `\nimport '../tailwind.css';` : '';
return `
import React from 'react';
import Component from '${importPath}';${tailwindImport}
@@ -108,7 +108,10 @@ async function main() {
prompts: Array<{id: string; category: string}>;
}>(manifestPath);
- const target = manifest.config.target as 'astryx' | 'baseline' | 'xds-tailwind';
+ const target = manifest.config.target as
+ | 'astryx'
+ | 'baseline'
+ | 'astryx-tailwind';
// Determine which prompts to screenshot
let promptIds = manifest.prompts.map(p => p.id);
@@ -152,10 +155,10 @@ async function main() {
ensureDir(screenshotsDir);
// Start Vite dev server
- // Use the preview config for xds-tailwind (includes PostCSS/Tailwind),
+ // Use the preview config for astryx-tailwind (includes PostCSS/Tailwind),
// default config for other targets
const configFile =
- target === 'xds-tailwind'
+ target === 'astryx-tailwind'
? path.join(APP_DIR, 'vite.config.preview.ts')
: undefined;
diff --git a/internal/vibe-tests/src/setup-environment.mjs b/internal/vibe-tests/src/setup-environment.mjs
index a7f0b1a6b0..db04554649 100644
--- a/internal/vibe-tests/src/setup-environment.mjs
+++ b/internal/vibe-tests/src/setup-environment.mjs
@@ -38,7 +38,7 @@ function copyFile(src, dest) {
* Create an isolated project directory for a single agent.
* Returns the absolute path to the project directory.
*
- * @param {'astryx' | 'xds-tailwind' | 'baseline' | 'html'} target
+ * @param {'astryx' | 'astryx-tailwind' | 'baseline' | 'html'} target
* @param {string} iterDir - The iteration results directory
* @param {string} promptId - The prompt ID (used to name the clone)
*/
@@ -48,7 +48,7 @@ export function createAgentProject(target, iterDir, promptId) {
const templateMap = {
astryx: 'project-astryx',
- 'xds-tailwind': 'project-xds-tailwind',
+ 'astryx-tailwind': 'project-astryx-tailwind',
baseline: 'project-baseline',
html: 'project-html',
};
@@ -61,7 +61,7 @@ export function createAgentProject(target, iterDir, promptId) {
copyFile(path.join(templateDir, file), path.join(projectDir, file));
}
- if (target === 'astryx' || target === 'xds-tailwind') {
+ if (target === 'astryx' || target === 'astryx-tailwind') {
// Symlink node_modules/@astryxdesign/core → packages/core
const coreLink = path.join(projectDir, 'node_modules', '@astryxdesign', 'core');
ensureDir(path.dirname(coreLink));
diff --git a/internal/vibe-tests/src/setup-nightly.mjs b/internal/vibe-tests/src/setup-nightly.mjs
index 42875852e2..3c1aafc9f1 100644
--- a/internal/vibe-tests/src/setup-nightly.mjs
+++ b/internal/vibe-tests/src/setup-nightly.mjs
@@ -5,8 +5,8 @@
* @file setup-nightly.mjs
*
* Sets up a complete nightly vibe test run: 4 iterations
- * (xds, xds-tailwind, baseline, html) using the same prompts.
- * XDS and XDS+Tailwind tasks include CLI-retrieval instructions.
+ * (astryx, astryx-tailwind, baseline, html) using the same prompts.
+ * Astryx and Astryx+Tailwind tasks include CLI-retrieval instructions.
*
* Usage:
* node internal/vibe-tests/src/setup-nightly.mjs
@@ -82,8 +82,8 @@ function samplePrompts(prompts, n) {
// ── Task prompt templates ────────────────────────────────────────────
-function generateXdsTaskPrompt(prompt, projectDir) {
- return `You are generating React/TSX code using the XDS design system.
+function generateAstryxTaskPrompt(prompt, projectDir) {
+ return `You are generating React/TSX code using the Astryx design system.
Your project is at ${projectDir}. Explore it to find available components.
## Task
@@ -99,8 +99,8 @@ Metadata: {"completedAt": "<ISO timestamp>", "docsRead": [<component names you l
Write ONLY valid TSX. No markdown fences, no explanation.`;
}
-function generateXdsTailwindTaskPrompt(prompt, projectDir) {
- return `You are generating React/TSX code using the XDS design system with Tailwind CSS.
+function generateAstryxTailwindTaskPrompt(prompt, projectDir) {
+ return `You are generating React/TSX code using the Astryx design system with Tailwind CSS.
Your project is at ${projectDir}. Explore it to find available components.
## Task
@@ -152,8 +152,8 @@ Write ONLY valid TSX. No markdown fences, no explanation.`;
}
const TARGET_CONFIG = {
- xds: {label: 'XDS', generateFn: generateXdsTaskPrompt, cliRetrieval: true},
- 'xds-tailwind': {label: 'XDS+TW', generateFn: generateXdsTailwindTaskPrompt, cliRetrieval: true},
+ astryx: {label: 'Astryx', generateFn: generateAstryxTaskPrompt, cliRetrieval: true},
+ 'astryx-tailwind': {label: 'Astryx+TW', generateFn: generateAstryxTailwindTaskPrompt, cliRetrieval: true},
baseline: {label: 'Baseline', generateFn: generateBaselineTaskPrompt, cliRetrieval: false},
html: {label: 'HTML', generateFn: generateHtmlTaskPrompt, cliRetrieval: false},
};
@@ -214,7 +214,7 @@ function createIteration(target, prompts) {
// ── Main ─────────────────────────────────────────────────────────────
-const TARGETS = ['xds', 'xds-tailwind', 'baseline', 'html'];
+const TARGETS = ['astryx', 'astryx-tailwind', 'baseline', 'html'];
const args = process.argv.slice(2);
const sampleIdx = args.indexOf('--sample');
const sample = sampleIdx !== -1 ? parseInt(args[sampleIdx + 1]) : 10;
@@ -284,9 +284,9 @@ console.log(`\n # Evaluation`);
for (const id of allIds) {
console.log(` npx tsx src/universal-aggregate.ts --iteration ${id}`);
}
-console.log(`\n # Compare (3-way: xds vs baseline vs html)`);
-console.log(` npx tsx src/universal-compare.ts --xds ${iterations.xds} --baseline ${iterations.baseline} --html ${iterations.html}`);
-console.log(`\n # Compare (xds vs xds-tailwind)`);
-console.log(` npx tsx src/universal-compare.ts --xds ${iterations.xds} --baseline ${iterations['xds-tailwind']}`);
-console.log(`\n # Deploy report (xds vs baseline)`);
-console.log(` npx tsx src/deploy-report.ts --iteration ${iterations.xds} --baseline ${iterations.baseline}`);
+console.log(`\n # Compare (3-way: astryx vs baseline vs html)`);
+console.log(` npx tsx src/universal-compare.ts --astryx ${iterations.astryx} --baseline ${iterations.baseline} --html ${iterations.html}`);
+console.log(`\n # Compare (astryx vs astryx+tailwind)`);
+console.log(` npx tsx src/universal-compare.ts --astryx ${iterations.astryx} --baseline ${iterations['astryx-tailwind']}`);
+console.log(`\n # Deploy report (astryx vs baseline vs html + astryx-tailwind)`);
+console.log(` npx tsx src/deploy-report.ts --iteration ${iterations.astryx} --baseline ${iterations.baseline} --html ${iterations.html} --astryx-tailwind ${iterations['astryx-tailwind']}`);
diff --git a/internal/vibe-tests/src/types.ts b/internal/vibe-tests/src/types.ts
index 7c8aa6e9ee..dd2b25a1b2 100644
--- a/internal/vibe-tests/src/types.ts
+++ b/internal/vibe-tests/src/types.ts
@@ -317,13 +317,13 @@ export interface UniversalAggregate {
cost?: CostMetrics;
}
-export type TargetName = 'astryx' | 'xds-tailwind' | 'baseline' | 'html';
+export type TargetName = 'astryx' | 'astryx-tailwind' | 'baseline' | 'html';
export interface UniversalComparison {
astryx: UniversalAggregate;
baseline: UniversalAggregate;
html?: UniversalAggregate;
- xdsTailwind?: UniversalAggregate;
+ astryxTailwind?: UniversalAggregate;
winners: Record<UniversalDimension, TargetName | 'tie'>;
byPrompt: Record<
string,
@@ -331,7 +331,7 @@ export interface UniversalComparison {
astryx: UniversalScore;
baseline: UniversalScore;
html?: UniversalScore;
- xdsTailwind?: UniversalScore;
+ astryxTailwind?: UniversalScore;
winner: TargetName | 'tie';
}
>;
diff --git a/internal/vibe-tests/src/universal-compare.ts b/internal/vibe-tests/src/universal-compare.ts
index 52cc9e3e84..9318c2a2d4 100644
--- a/internal/vibe-tests/src/universal-compare.ts
+++ b/internal/vibe-tests/src/universal-compare.ts
@@ -60,7 +60,7 @@ function winner(
astryxVal: number,
baseVal: number,
htmlVal?: number,
- xdsTailwindVal?: number,
+ astryxTailwindVal?: number,
): WinnerType {
const entries: [TargetName, number][] = [
['astryx', astryxVal],
@@ -69,8 +69,8 @@ function winner(
if (htmlVal != null) {
entries.push(['html', htmlVal]);
}
- if (xdsTailwindVal != null) {
- entries.push(['astryx-tailwind', xdsTailwindVal]);
+ if (astryxTailwindVal != null) {
+ entries.push(['astryx-tailwind', astryxTailwindVal]);
}
const max = Math.max(...entries.map(([, v]) => v));
@@ -100,7 +100,7 @@ function parseArgs(): {
astryx: string;
baseline: string;
html?: string;
- xdsTailwind?: string;
+ astryxTailwind?: string;
json: boolean;
markdown: boolean;
} {
@@ -108,7 +108,7 @@ function parseArgs(): {
let astryx = '';
let baseline = '';
let html: string | undefined;
- let xdsTailwind: string | undefined;
+ let astryxTailwind: string | undefined;
let json = false;
let markdown = false;
@@ -120,7 +120,7 @@ function parseArgs(): {
} else if (args[i] === '--html' && args[i + 1]) {
html = args[++i];
} else if (args[i] === '--astryx-tailwind' && args[i + 1]) {
- xdsTailwind = args[++i];
+ astryxTailwind = args[++i];
} else if (args[i] === '--json') {
json = true;
} else if (args[i] === '--markdown' || args[i] === '--md') {
@@ -135,7 +135,7 @@ function parseArgs(): {
process.exit(1);
}
- return {astryx, baseline, html, xdsTailwind, json, markdown};
+ return {astryx, baseline, html, astryxTailwind, json, markdown};
}
/**
@@ -147,15 +147,16 @@ function toMarkdown(opts: {
astryxId: string;
baselineId: string;
htmlId?: string;
- xdsTailwindId?: string;
+ astryxTailwindId?: string;
byPrompt: UniversalComparison['byPrompt'];
}): string {
- const {comparison, astryxId, baselineId, htmlId, xdsTailwindId, byPrompt} = opts;
+ const {comparison, astryxId, baselineId, htmlId, astryxTailwindId, byPrompt} =
+ opts;
const {
astryx,
baseline,
html: htmlData,
- xdsTailwind: twData,
+ astryxTailwind: twData,
winners,
} = comparison;
const dimensions = getDimensionNames();
@@ -177,7 +178,9 @@ function toMarkdown(opts: {
];
const astryxRow = dimOrder.map(d => astryx.averages[d]).join(' | ');
- lines.push(`| **Astryx** | \`${astryxId}\` | ${astryx.overall} | ${astryxRow} |`);
+ lines.push(
+ `| **Astryx** | \`${astryxId}\` | ${astryx.overall} | ${astryxRow} |`,
+ );
const baseRow = dimOrder.map(d => baseline.averages[d]).join(' | ');
lines.push(
@@ -194,7 +197,7 @@ function toMarkdown(opts: {
if (twData) {
const twRow = dimOrder.map(d => twData.averages[d]).join(' | ');
lines.push(
- `| **XDS+TW** | \`${xdsTailwindId}\` | ${twData.overall} | ${twRow} |`,
+ `| **XDS+TW** | \`${astryxTailwindId}\` | ${twData.overall} | ${twRow} |`,
);
}
@@ -273,7 +276,7 @@ async function main() {
astryx: astryxId,
baseline: baselineId,
html: htmlId,
- xdsTailwind: xdsTailwindId,
+ astryxTailwind: astryxTailwindId,
json,
markdown,
} = parseArgs();
@@ -281,7 +284,9 @@ async function main() {
const astryx = loadOrGenerate(astryxId);
const baseline = loadOrGenerate(baselineId);
const htmlData = htmlId ? loadOrGenerate(htmlId) : undefined;
- const twData = xdsTailwindId ? loadOrGenerate(xdsTailwindId) : undefined;
+ const twData = astryxTailwindId
+ ? loadOrGenerate(astryxTailwindId)
+ : undefined;
const dimensions = getDimensionNames();
const isThreeWay = !!htmlData;
@@ -318,7 +323,7 @@ async function main() {
astryx: astryxScore,
baseline: baselineScore,
...(htmlScore ? {html: htmlScore} : {}),
- ...(twScore ? {xdsTailwind: twScore} : {}),
+ ...(twScore ? {astryxTailwind: twScore} : {}),
winner: winner(
getAverageScore(astryxScore),
getAverageScore(baselineScore),
@@ -333,7 +338,7 @@ async function main() {
astryx,
baseline,
...(htmlData ? {html: htmlData} : {}),
- ...(twData ? {xdsTailwind: twData} : {}),
+ ...(twData ? {astryxTailwind: twData} : {}),
winners,
byPrompt,
};
@@ -343,8 +348,8 @@ async function main() {
if (htmlId) {
idParts.push(htmlId);
}
- if (xdsTailwindId) {
- idParts.push(xdsTailwindId);
+ if (astryxTailwindId) {
+ idParts.push(astryxTailwindId);
}
const outputFilename = `comparison-${idParts.join('-')}.json`;
const outputPath = path.join(getResultsDir(), outputFilename);
@@ -362,7 +367,7 @@ async function main() {
astryxId,
baselineId,
htmlId,
- xdsTailwindId,
+ astryxTailwindId,
byPrompt,
}),
);
diff --git a/internal/vibe-tests/src/universal-eval.ts b/internal/vibe-tests/src/universal-eval.ts
index c3562bad14..e85d6cee17 100644
--- a/internal/vibe-tests/src/universal-eval.ts
+++ b/internal/vibe-tests/src/universal-eval.ts
@@ -553,7 +553,7 @@ function countElements(code: string): number {
function countStylingDecisions(code: string, target: string): number {
let count = 0;
- if (target === 'xds' || target === 'xds-tailwind') {
+ if (target === 'astryx' || target === 'astryx-tailwind') {
// Component props that are styling decisions: variant, size, gap, color, type
count += (
code.match(
@@ -567,7 +567,7 @@ function countStylingDecisions(code: string, target: string): number {
}
}
- if (target === 'baseline' || target === 'xds-tailwind') {
+ if (target === 'baseline' || target === 'astryx-tailwind') {
// Tailwind classes — each utility class is a decision
const classNames = code.match(/className\s*=\s*["']([^"']+)["']/g) || [];
for (const cn of classNames) {
@@ -661,7 +661,7 @@ function analyzeEfficiency(
continue;
}
if (
- (target === 'xds' || target === 'xds-tailwind') &&
+ (target === 'astryx' || target === 'astryx-tailwind') &&
stripped.includes('stylex.create')
) {
inStyleBlock = true;
@@ -674,7 +674,7 @@ function analyzeEfficiency(
continue;
}
if (
- (target === 'baseline' || target === 'xds-tailwind') &&
+ (target === 'baseline' || target === 'astryx-tailwind') &&
stripped.includes('className=')
) {
stylingLines++;
@@ -792,7 +792,7 @@ function countMagicAndSemanticValues(
// CSS variables
semantic += (code.match(/var\(--[\w-]+\)/g) || []).length;
- if (target === 'xds' || target === 'xds-tailwind') {
+ if (target === 'astryx' || target === 'astryx-tailwind') {
// StyleX token references: spacingVars["--spacing-4"], colorVars["--color-*"]
semantic += (code.match(/\w+Vars\[["']--[\w-]+["']\]/g) || []).length;
// Component props that delegate styling: variant=, size=, gap=, color=, type=
@@ -801,7 +801,7 @@ function countMagicAndSemanticValues(
).length;
}
- if (target === 'baseline' || target === 'xds-tailwind') {
+ if (target === 'baseline' || target === 'astryx-tailwind') {
// Tailwind semantic tokens: bg-primary, text-muted-foreground, etc.
semantic += (
code.match(
@@ -1002,7 +1002,7 @@ function analyzeMaintainability(
* Run all 5 dimension analyzers on a code sample.
*
* @param code - The generated TSX source code
- * @param target - The target system ('xds' | 'baseline' | 'html')
+ * @param target - The target system ('astryx' | 'astryx-tailwind' | 'baseline' | 'html')
* @param options - Optional context for enhanced scoring
* @param options.tscResult - tsc type check results (from build-errors.json)
* @param options.iterDir - Path to iteration directory (for loading build-errors.json)