create-kywi-app 0.26.0 → 0.27.0
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/assets/agent-patterns.md +9 -0
- package/lib/templates.mjs +11 -0
- package/package.json +1 -1
package/assets/agent-patterns.md
CHANGED
|
@@ -861,6 +861,15 @@ early, so ask at scoping time.
|
|
|
861
861
|
`on`) — the admin shows a "Search engines are blocked" banner until you do.
|
|
862
862
|
Never hide a site from search by editing robots policy by hand; use this
|
|
863
863
|
switch.
|
|
864
|
+
- **Every page has a Markdown copy when `ax.markdown` is on.** `/<path>.md`
|
|
865
|
+
serves it, and the home page is `/index.md`. The page head advertises it with
|
|
866
|
+
`<link rel="alternate" type="text/markdown">`, but only when the copy really
|
|
867
|
+
answers. Set `KYWI_AX_MARKDOWN=on` so agents that send
|
|
868
|
+
`Accept: text/markdown` to the page URL get the copy too, and
|
|
869
|
+
`KYWI_AX_LLMS=on` to advertise `/llms.txt` in a `Link` header. The edge
|
|
870
|
+
cannot read `kywi.config.ts`, so these env vars mirror config; keep them in
|
|
871
|
+
step. Never write a static `public/llms.txt` or a hand-made `.md` file — the
|
|
872
|
+
generated ones follow every publish.
|
|
864
873
|
|
|
865
874
|
## Other capabilities worth knowing
|
|
866
875
|
|
package/lib/templates.mjs
CHANGED
|
@@ -468,6 +468,15 @@ AUTH_SECRET=CHANGE_ME
|
|
|
468
468
|
# noindex header on every response — use it on a pre-launch or staging host.
|
|
469
469
|
# Set on at launch (or remove it once the site answers on its real domain).
|
|
470
470
|
# KYWI_INDEXING=off
|
|
471
|
+
|
|
472
|
+
# Agent discovery at the edge. The middleware cannot read kywi.config.ts, so
|
|
473
|
+
# these mirror the AX config there — keep each in step with its setting.
|
|
474
|
+
# KYWI_AX_LLMS=on adds a \`Link: </llms.txt>; rel="describedby"\` header to public
|
|
475
|
+
# pages (mirror of ax.llmsTxt.enabled, which is on by default).
|
|
476
|
+
# KYWI_AX_MARKDOWN=on answers \`Accept: text/markdown\` on page URLs with the
|
|
477
|
+
# page's Markdown copy (mirror of ax.markdown.enabled, which is off by default).
|
|
478
|
+
KYWI_AX_LLMS=on
|
|
479
|
+
# KYWI_AX_MARKDOWN=on
|
|
471
480
|
`
|
|
472
481
|
}
|
|
473
482
|
|
|
@@ -1272,6 +1281,7 @@ const route = createAxRoute({ runtime: kywi, axPath: '${axPath}' })
|
|
|
1272
1281
|
|
|
1273
1282
|
/** Root-level \`/${axPath}\` — delegates to the core AX generator (kywi-cms#55). */
|
|
1274
1283
|
export const GET = route.GET
|
|
1284
|
+
export const HEAD = route.HEAD
|
|
1275
1285
|
|
|
1276
1286
|
export const dynamic = 'force-dynamic'
|
|
1277
1287
|
`)
|
|
@@ -1319,6 +1329,7 @@ export const POST = route.POST
|
|
|
1319
1329
|
export const PUT = route.PUT
|
|
1320
1330
|
export const PATCH = route.PATCH
|
|
1321
1331
|
export const DELETE = route.DELETE
|
|
1332
|
+
export const HEAD = route.HEAD
|
|
1322
1333
|
|
|
1323
1334
|
export const dynamic = 'force-dynamic'
|
|
1324
1335
|
`)
|
package/package.json
CHANGED