@olonjs/cli 3.0.116 → 3.0.118
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.
|
@@ -1624,7 +1624,7 @@ echo "Creating package.json..."
|
|
|
1624
1624
|
cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
1625
1625
|
{
|
|
1626
1626
|
"name": "tenant-alpha",
|
|
1627
|
-
"version": "1.0.
|
|
1627
|
+
"version": "1.0.104",
|
|
1628
1628
|
"private": true,
|
|
1629
1629
|
"type": "module",
|
|
1630
1630
|
"scripts": {
|
|
@@ -1633,7 +1633,7 @@ cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
|
1633
1633
|
"verify:webmcp": "node scripts/webmcp-feature-check.mjs",
|
|
1634
1634
|
"prebuild": "node scripts/sync-pages-to-public.mjs",
|
|
1635
1635
|
"build": "tsc && vite build",
|
|
1636
|
-
"dist": "bash ./src2Code.sh --template alpha src .cursor vercel.json index.html tsconfig.json tsconfig.node.json vite.config.ts scripts specs package.json",
|
|
1636
|
+
"dist": "bash ./src2Code.sh --template alpha src .cursor vercel.json index.html tsconfig.json tsconfig.node.json vite.config.ts scripts specs package.json public/assets/images/plug-graded-square.jpg",
|
|
1637
1637
|
"preview": "vite preview",
|
|
1638
1638
|
"bake:email": "tsx scripts/bake-email.tsx",
|
|
1639
1639
|
"bakemail": "npm run bake:email --",
|
|
@@ -1644,7 +1644,7 @@ cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
|
1644
1644
|
"@tiptap/extension-link": "^2.11.5",
|
|
1645
1645
|
"@tiptap/react": "^2.11.5",
|
|
1646
1646
|
"@tiptap/starter-kit": "^2.11.5",
|
|
1647
|
-
"@olonjs/core": "^1.0.
|
|
1647
|
+
"@olonjs/core": "^1.0.107",
|
|
1648
1648
|
"class-variance-authority": "^0.7.1",
|
|
1649
1649
|
"clsx": "^2.1.1",
|
|
1650
1650
|
"lucide-react": "^0.474.0",
|
|
@@ -1673,6 +1673,7 @@ cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
|
1673
1673
|
}
|
|
1674
1674
|
|
|
1675
1675
|
END_OF_FILE_CONTENT
|
|
1676
|
+
# SKIP: public/assets/images/plug-graded-square.jpg is binary and cannot be embedded as text.
|
|
1676
1677
|
mkdir -p "scripts"
|
|
1677
1678
|
echo "Creating scripts/bake-email.tsx..."
|
|
1678
1679
|
cat << 'END_OF_FILE_CONTENT' > "scripts/bake-email.tsx"
|
|
@@ -4006,7 +4007,7 @@ function App() {
|
|
|
4006
4007
|
</div>
|
|
4007
4008
|
</div>
|
|
4008
4009
|
) : null}
|
|
4009
|
-
{shouldRenderEngine ? <JsonPagesEngine config={config}
|
|
4010
|
+
{shouldRenderEngine ? <JsonPagesEngine config={config} /> : null}
|
|
4010
4011
|
{isCloudMode && (contentMode === 'error' || contentFallback?.reasonCode === 'CLOUD_REFRESH_FAILED') ? (
|
|
4011
4012
|
<div
|
|
4012
4013
|
role="status"
|
|
@@ -14354,10 +14355,20 @@ export default defineConfig({
|
|
|
14354
14355
|
const isPageJsonRequest = isTenantPageJsonRequest(req, pathname);
|
|
14355
14356
|
|
|
14356
14357
|
const handleManifestRequest = async () => {
|
|
14357
|
-
const { buildPageContract, buildPageManifest, buildSiteManifest } = await loadWebMcpBuilders();
|
|
14358
|
+
const { buildPageContract, buildPageManifest, buildSiteManifest, buildLlmsTxt } = await loadWebMcpBuilders();
|
|
14358
14359
|
const ssrEntry = await server.ssrLoadModule('/src/entry-ssg.tsx');
|
|
14359
14360
|
const buildState = ssrEntry.getWebMcpBuildState();
|
|
14360
14361
|
|
|
14362
|
+
if (req.method === 'GET' && pathname === '/llms.txt') {
|
|
14363
|
+
res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' });
|
|
14364
|
+
res.end(buildLlmsTxt({
|
|
14365
|
+
pages: buildState.pages,
|
|
14366
|
+
schemas: buildState.schemas,
|
|
14367
|
+
siteConfig: buildState.siteConfig,
|
|
14368
|
+
}));
|
|
14369
|
+
return true;
|
|
14370
|
+
}
|
|
14371
|
+
|
|
14361
14372
|
if (req.method === 'GET' && pathname === '/mcp-manifest.json') {
|
|
14362
14373
|
sendJson(res, 200, buildSiteManifest({
|
|
14363
14374
|
pages: buildState.pages,
|
|
@@ -14409,6 +14420,7 @@ export default defineConfig({
|
|
|
14409
14420
|
req.method === 'GET' &&
|
|
14410
14421
|
(
|
|
14411
14422
|
pathname === '/mcp-manifest.json'
|
|
14423
|
+
|| pathname === '/llms.txt'
|
|
14412
14424
|
|| /^\/mcp-manifests\/.+\.json$/i.test(pathname)
|
|
14413
14425
|
|| /^\/schemas\/.+\.schema\.json$/i.test(pathname)
|
|
14414
14426
|
)
|
|
@@ -576,7 +576,7 @@ echo "Creating package.json..."
|
|
|
576
576
|
cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
577
577
|
{
|
|
578
578
|
"name": "tenant-agritourism",
|
|
579
|
-
"version": "1.0.
|
|
579
|
+
"version": "1.0.104",
|
|
580
580
|
"private": true,
|
|
581
581
|
"type": "module",
|
|
582
582
|
"scripts": {
|
|
@@ -596,7 +596,7 @@ cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
|
596
596
|
"@tiptap/extension-link": "^2.11.5",
|
|
597
597
|
"@tiptap/react": "^2.11.5",
|
|
598
598
|
"@tiptap/starter-kit": "^2.11.5",
|
|
599
|
-
"@olonjs/core": "^1.0.
|
|
599
|
+
"@olonjs/core": "^1.0.107",
|
|
600
600
|
"clsx": "^2.1.1",
|
|
601
601
|
"lucide-react": "^0.474.0",
|
|
602
602
|
"react": "^19.0.0",
|
|
@@ -1624,7 +1624,7 @@ echo "Creating package.json..."
|
|
|
1624
1624
|
cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
1625
1625
|
{
|
|
1626
1626
|
"name": "tenant-alpha",
|
|
1627
|
-
"version": "1.0.
|
|
1627
|
+
"version": "1.0.104",
|
|
1628
1628
|
"private": true,
|
|
1629
1629
|
"type": "module",
|
|
1630
1630
|
"scripts": {
|
|
@@ -1633,7 +1633,7 @@ cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
|
1633
1633
|
"verify:webmcp": "node scripts/webmcp-feature-check.mjs",
|
|
1634
1634
|
"prebuild": "node scripts/sync-pages-to-public.mjs",
|
|
1635
1635
|
"build": "tsc && vite build",
|
|
1636
|
-
"dist": "bash ./src2Code.sh --template alpha src .cursor vercel.json index.html tsconfig.json tsconfig.node.json vite.config.ts scripts specs package.json",
|
|
1636
|
+
"dist": "bash ./src2Code.sh --template alpha src .cursor vercel.json index.html tsconfig.json tsconfig.node.json vite.config.ts scripts specs package.json public/assets/images/plug-graded-square.jpg",
|
|
1637
1637
|
"preview": "vite preview",
|
|
1638
1638
|
"bake:email": "tsx scripts/bake-email.tsx",
|
|
1639
1639
|
"bakemail": "npm run bake:email --",
|
|
@@ -1644,7 +1644,7 @@ cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
|
1644
1644
|
"@tiptap/extension-link": "^2.11.5",
|
|
1645
1645
|
"@tiptap/react": "^2.11.5",
|
|
1646
1646
|
"@tiptap/starter-kit": "^2.11.5",
|
|
1647
|
-
"@olonjs/core": "^1.0.
|
|
1647
|
+
"@olonjs/core": "^1.0.107",
|
|
1648
1648
|
"class-variance-authority": "^0.7.1",
|
|
1649
1649
|
"clsx": "^2.1.1",
|
|
1650
1650
|
"lucide-react": "^0.474.0",
|
|
@@ -1673,6 +1673,7 @@ cat << 'END_OF_FILE_CONTENT' > "package.json"
|
|
|
1673
1673
|
}
|
|
1674
1674
|
|
|
1675
1675
|
END_OF_FILE_CONTENT
|
|
1676
|
+
# SKIP: public/assets/images/plug-graded-square.jpg is binary and cannot be embedded as text.
|
|
1676
1677
|
mkdir -p "scripts"
|
|
1677
1678
|
echo "Creating scripts/bake-email.tsx..."
|
|
1678
1679
|
cat << 'END_OF_FILE_CONTENT' > "scripts/bake-email.tsx"
|
|
@@ -4006,7 +4007,7 @@ function App() {
|
|
|
4006
4007
|
</div>
|
|
4007
4008
|
</div>
|
|
4008
4009
|
) : null}
|
|
4009
|
-
{shouldRenderEngine ? <JsonPagesEngine config={config}
|
|
4010
|
+
{shouldRenderEngine ? <JsonPagesEngine config={config} /> : null}
|
|
4010
4011
|
{isCloudMode && (contentMode === 'error' || contentFallback?.reasonCode === 'CLOUD_REFRESH_FAILED') ? (
|
|
4011
4012
|
<div
|
|
4012
4013
|
role="status"
|
|
@@ -14354,10 +14355,20 @@ export default defineConfig({
|
|
|
14354
14355
|
const isPageJsonRequest = isTenantPageJsonRequest(req, pathname);
|
|
14355
14356
|
|
|
14356
14357
|
const handleManifestRequest = async () => {
|
|
14357
|
-
const { buildPageContract, buildPageManifest, buildSiteManifest } = await loadWebMcpBuilders();
|
|
14358
|
+
const { buildPageContract, buildPageManifest, buildSiteManifest, buildLlmsTxt } = await loadWebMcpBuilders();
|
|
14358
14359
|
const ssrEntry = await server.ssrLoadModule('/src/entry-ssg.tsx');
|
|
14359
14360
|
const buildState = ssrEntry.getWebMcpBuildState();
|
|
14360
14361
|
|
|
14362
|
+
if (req.method === 'GET' && pathname === '/llms.txt') {
|
|
14363
|
+
res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' });
|
|
14364
|
+
res.end(buildLlmsTxt({
|
|
14365
|
+
pages: buildState.pages,
|
|
14366
|
+
schemas: buildState.schemas,
|
|
14367
|
+
siteConfig: buildState.siteConfig,
|
|
14368
|
+
}));
|
|
14369
|
+
return true;
|
|
14370
|
+
}
|
|
14371
|
+
|
|
14361
14372
|
if (req.method === 'GET' && pathname === '/mcp-manifest.json') {
|
|
14362
14373
|
sendJson(res, 200, buildSiteManifest({
|
|
14363
14374
|
pages: buildState.pages,
|
|
@@ -14409,6 +14420,7 @@ export default defineConfig({
|
|
|
14409
14420
|
req.method === 'GET' &&
|
|
14410
14421
|
(
|
|
14411
14422
|
pathname === '/mcp-manifest.json'
|
|
14423
|
+
|| pathname === '/llms.txt'
|
|
14412
14424
|
|| /^\/mcp-manifests\/.+\.json$/i.test(pathname)
|
|
14413
14425
|
|| /^\/schemas\/.+\.schema\.json$/i.test(pathname)
|
|
14414
14426
|
)
|