Feature: Complete Admin UI Overhaul, Content Factory Showcase Mode, and Site Management

This commit is contained in:
cawcenter
2025-12-12 18:25:31 -05:00
parent 7a9b7ec86e
commit d8db5f42cf
59 changed files with 6277 additions and 186 deletions

View File

@@ -0,0 +1,32 @@
// We import using relative paths to cross the project boundary
import { SpintaxParser } from '../../frontend/src/lib/cartesian/SpintaxParser';
import { GrammarEngine } from '../../frontend/src/lib/cartesian/GrammarEngine';
console.log('--- Verifying SpintaxParser ---');
const spintax = "{Hello|Hi} {World|Friend|{Universe|Cosmos}}";
const parsed = SpintaxParser.parse(spintax);
console.log(`Input: ${spintax}`);
console.log(`Output: ${parsed}`);
if (parsed.includes('{') || parsed.includes('}')) {
console.error('❌ Spintax failed to fully resolve.');
process.exit(1);
} else {
console.log('✅ Spintax Resolved');
}
console.log('--- Verifying GrammarEngine ---');
const distinct = { pronoun: "he", isare: "is" };
const text = "[[PRONOUN]] [[ISARE]] going to the [[A_AN:Apple]] store.";
const resolved = GrammarEngine.resolve(text, distinct);
console.log(`Input: ${text}`);
console.log(`Output: ${resolved}`);
if (resolved !== "he is going to the an Apple store.") {
console.warn(`⚠️ Grammar resolution mismatch. Got: ${resolved}`);
} else {
console.log('✅ Grammar Resolved');
}
console.log('--- Verification Complete ---');