@vercel/geistdocs 2.12.5 → 2.13.1-canary.dd9d47d
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/cli/index.js +1 -1
- package/dist/config.d.ts +18 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/footer.js +1 -1
- package/dist/internal/chat/session.d.ts +2 -3
- package/dist/internal/chat/session.d.ts.map +1 -1
- package/dist/internal/chat/session.js +28 -4
- package/dist/internal/chat/shell.js +2 -2
- package/dist/internal/eve-agent-session.d.ts +5 -7
- package/dist/internal/eve-agent-session.d.ts.map +1 -1
- package/dist/internal/eve-agent-session.js +5 -8
- package/dist/internal/eve-agent.d.ts +11 -3
- package/dist/internal/eve-agent.d.ts.map +1 -1
- package/dist/internal/eve-agent.js +19 -4
- package/dist/internal/languages.d.ts +22 -1
- package/dist/internal/languages.d.ts.map +1 -1
- package/dist/internal/languages.js +32 -0
- package/dist/internal/lazy-search.d.ts +13 -0
- package/dist/internal/lazy-search.d.ts.map +1 -0
- package/dist/internal/lazy-search.js +61 -0
- package/dist/internal/navbar/desktop-menu.d.ts.map +1 -1
- package/dist/internal/navbar/desktop-menu.js +4 -4
- package/dist/internal/navbar/mobile-menu.d.ts.map +1 -1
- package/dist/internal/navbar/mobile-menu.js +4 -4
- package/dist/internal/navbar/use-nav-active.d.ts +12 -5
- package/dist/internal/navbar/use-nav-active.d.ts.map +1 -1
- package/dist/internal/navbar/use-nav-active.js +30 -14
- package/dist/internal/provider-client.d.ts +1 -1
- package/dist/internal/provider-client.d.ts.map +1 -1
- package/dist/internal/provider-client.js +2 -2
- package/dist/internal/sidebar.d.ts +3 -1
- package/dist/internal/sidebar.d.ts.map +1 -1
- package/dist/internal/sidebar.js +8 -8
- package/dist/layout.d.ts +7 -1
- package/dist/layout.d.ts.map +1 -1
- package/dist/layout.js +2 -2
- package/dist/mdx.d.ts +1 -44
- package/dist/mdx.d.ts.map +1 -1
- package/dist/mdx.js +4 -4
- package/dist/navbar.d.ts +1 -1
- package/dist/navbar.d.ts.map +1 -1
- package/dist/navbar.js +3 -1
- package/dist/pages/changelog.d.ts +7 -4
- package/dist/pages/changelog.d.ts.map +1 -1
- package/dist/pages/changelog.js +6 -4
- package/dist/pages/docs.d.ts +4 -2
- package/dist/pages/docs.d.ts.map +1 -1
- package/dist/pages/docs.js +15 -3
- package/dist/providers/public/components/toasts.d.ts +4 -4
- package/dist/providers/public/components/toasts.d.ts.map +1 -1
- package/dist/providers/public/components/toasts.js +50 -14
- package/dist/proxy.d.ts +1 -1
- package/dist/proxy.d.ts.map +1 -1
- package/dist/proxy.js +12 -1
- package/dist/routes/agents.d.ts +1 -1
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/agents.js +4 -3
- package/dist/routes/changelog.d.ts +19 -10
- package/dist/routes/changelog.d.ts.map +1 -1
- package/dist/routes/changelog.js +11 -11
- package/dist/routes/chat.d.ts.map +1 -1
- package/dist/routes/chat.js +21 -4
- package/dist/routes/llms.d.ts +10 -5
- package/dist/routes/llms.d.ts.map +1 -1
- package/dist/routes/llms.js +10 -5
- package/dist/routes/mcp.d.ts +1 -1
- package/dist/routes/mcp.d.ts.map +1 -1
- package/dist/routes/mcp.js +2 -1
- package/dist/routes/openapi.d.ts +1 -1
- package/dist/routes/openapi.d.ts.map +1 -1
- package/dist/routes/openapi.js +12 -5
- package/dist/routes/sitemap.d.ts +5 -5
- package/dist/routes/sitemap.d.ts.map +1 -1
- package/dist/routes/sitemap.js +4 -9
- package/dist/source.d.ts +6 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +1 -0
- package/docs/agents.md +1 -1
- package/docs/llms.txt +11 -3
- package/docs/manifest.json +1 -1
- package/docs/pages/ask-ai.md +5 -1
- package/docs/pages/configuration.md +5 -1
- package/package.json +7 -7
- package/template/content/docs/ask-ai.mdx +5 -1
- package/template/content/docs/configuration.mdx +5 -1
- package/template/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sitemap.d.ts","sourceRoot":"","sources":["../../src/routes/sitemap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAiB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"sitemap.d.ts","sourceRoot":"","sources":["../../src/routes/sitemap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAiB,MAAM,WAAW,CAAC;AAKhE,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAEjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,qBAAqB,EAA2B,MAAM,WAAW,CAAC;AAKhF,UAAU,WAAW;IACnB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,IAAI,CAAC;KACrB,GAAG,2BAA2B,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,aAAa;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAAC;CACvC;AAED,KAAK,kBAAkB,GAAG,qBAAqB,GAAG,aAAa,CAAC;AAEhE,UAAU,cAAc;IACtB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,iCAAiC;IACzC,MAAM,EAAE,IAAI,CACV,eAAe,EACf,UAAU,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,cAAc,CACnE,CAAC;IACF,UAAU,CAAC,EAAE,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC;IAClE,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,CACV,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KACtB,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;CAC/B;AAsMD,eAAO,MAAM,0BAA0B,GAAI,4DAOxC,iCAAiC;gBAI1B,WAAW,eACL;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE;;;;;;CA6DtD,CAAC"}
|
package/dist/routes/sitemap.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { getPublicPath } from "../config";
|
|
2
|
+
import { getLanguageStaticParams, resolveRouteLanguage, } from "../internal/languages";
|
|
2
3
|
import { isPageVisibleForSurface, } from "../page-visibility";
|
|
3
4
|
import { isGeistdocsSourceBundle } from "../source";
|
|
4
5
|
const DOCS_PREFIX_PATTERN = /^\/docs\/?/;
|
|
5
6
|
const WHITESPACE_PATTERN = /\s+/;
|
|
6
|
-
const getLanguages = (config) => {
|
|
7
|
-
const defaultLanguage = config.defaultLanguage ?? "en";
|
|
8
|
-
const languages = Object.keys(config.translations ?? {});
|
|
9
|
-
return Array.from(new Set([defaultLanguage, ...languages]));
|
|
10
|
-
};
|
|
11
7
|
function buildTree(pages) {
|
|
12
8
|
const root = [];
|
|
13
9
|
const map = new Map();
|
|
@@ -145,10 +141,9 @@ const getSectionPages = (source, lang, basePath, filterPage) => {
|
|
|
145
141
|
const getSectionTitle = (section) => section.title ??
|
|
146
142
|
(isGeistdocsSourceBundle(section.source) ? section.source.label : undefined);
|
|
147
143
|
export const createSitemapMarkdownRoute = ({ config, filterPage, source, sources, title = "Documentation Sitemap", transform, }) => {
|
|
148
|
-
const languages = getLanguages(config);
|
|
149
144
|
const sections = resolveSitemapSections(source, sources);
|
|
150
|
-
const GET = async (_req, { params }) => {
|
|
151
|
-
const
|
|
145
|
+
const GET = async (_req, { params } = {}) => {
|
|
146
|
+
const lang = resolveRouteLanguage(config, (await params)?.lang);
|
|
152
147
|
const header = `# ${title}
|
|
153
148
|
|
|
154
149
|
## Purpose
|
|
@@ -185,7 +180,7 @@ It is not intended to replace individual docs.
|
|
|
185
180
|
},
|
|
186
181
|
});
|
|
187
182
|
};
|
|
188
|
-
const generateStaticParams = () =>
|
|
183
|
+
const generateStaticParams = () => getLanguageStaticParams(config);
|
|
189
184
|
return {
|
|
190
185
|
GET,
|
|
191
186
|
generateStaticParams,
|
package/dist/source.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export interface GeistdocsSlugsContext {
|
|
|
70
70
|
}
|
|
71
71
|
export interface CreateSourceOptions {
|
|
72
72
|
baseUrl?: string;
|
|
73
|
-
config: Pick<GeistdocsConfig, "agent" | "basePath" | "defaultLanguage" | "siteUrl" | "translations"> & Partial<Pick<GeistdocsConfig, "title">>;
|
|
73
|
+
config: Pick<GeistdocsConfig, "agent" | "basePath" | "defaultLanguage" | "singleLanguage" | "siteUrl" | "translations"> & Partial<Pick<GeistdocsConfig, "title">>;
|
|
74
74
|
docs: FumadocsCollection;
|
|
75
75
|
id?: string;
|
|
76
76
|
label?: string;
|
|
@@ -106,6 +106,7 @@ export declare const createSource: ({ docs, config, baseUrl, id, label, markdown
|
|
|
106
106
|
agent: import("./config.js").GeistdocsAgentReadinessConfig | undefined;
|
|
107
107
|
basePath: string | undefined;
|
|
108
108
|
defaultLanguage: string | undefined;
|
|
109
|
+
singleLanguage: boolean | undefined;
|
|
109
110
|
siteUrl: string | undefined;
|
|
110
111
|
title: string | undefined;
|
|
111
112
|
translations: import("./config.js").GeistdocsTranslations | undefined;
|
|
@@ -141,6 +142,7 @@ export declare const createSources: ({ config, sources }: CreateSourcesOptions)
|
|
|
141
142
|
agent: import("./config.js").GeistdocsAgentReadinessConfig | undefined;
|
|
142
143
|
basePath: string | undefined;
|
|
143
144
|
defaultLanguage: string | undefined;
|
|
145
|
+
singleLanguage: boolean | undefined;
|
|
144
146
|
siteUrl: string | undefined;
|
|
145
147
|
title: string | undefined;
|
|
146
148
|
translations: import("./config.js").GeistdocsTranslations | undefined;
|
|
@@ -179,6 +181,7 @@ export declare const createVersionedSources: ({ config, current, versions, }: Cr
|
|
|
179
181
|
agent: import("./config.js").GeistdocsAgentReadinessConfig | undefined;
|
|
180
182
|
basePath: string | undefined;
|
|
181
183
|
defaultLanguage: string | undefined;
|
|
184
|
+
singleLanguage: boolean | undefined;
|
|
182
185
|
siteUrl: string | undefined;
|
|
183
186
|
title: string | undefined;
|
|
184
187
|
translations: import("./config.js").GeistdocsTranslations | undefined;
|
|
@@ -208,6 +211,7 @@ export declare const createVersionedSources: ({ config, current, versions, }: Cr
|
|
|
208
211
|
agent: import("./config.js").GeistdocsAgentReadinessConfig | undefined;
|
|
209
212
|
basePath: string | undefined;
|
|
210
213
|
defaultLanguage: string | undefined;
|
|
214
|
+
singleLanguage: boolean | undefined;
|
|
211
215
|
siteUrl: string | undefined;
|
|
212
216
|
title: string | undefined;
|
|
213
217
|
translations: import("./config.js").GeistdocsTranslations | undefined;
|
|
@@ -236,6 +240,7 @@ export declare const createVersionedSources: ({ config, current, versions, }: Cr
|
|
|
236
240
|
agent: import("./config.js").GeistdocsAgentReadinessConfig | undefined;
|
|
237
241
|
basePath: string | undefined;
|
|
238
242
|
defaultLanguage: string | undefined;
|
|
243
|
+
singleLanguage: boolean | undefined;
|
|
239
244
|
siteUrl: string | undefined;
|
|
240
245
|
title: string | undefined;
|
|
241
246
|
translations: import("./config.js").GeistdocsTranslations | undefined;
|
package/dist/source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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O,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;CAC1D;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,6CAKjC,0BAA0B,KAAG,MAAM,EAYrC,CAAC;AAEF,MAAM,WAAW,gCAAgC;IAC/C,UAAU,CAAC,EAAE,0BAA0B,CAAC,YAAY,CAAC,CAAC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,EAAE,KAAK,CAAC,CAAC;CAClE;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GAAI,iCAIvC,gCAAgC,KAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAiBvE,CAAC"}
|
package/dist/source.js
CHANGED
|
@@ -247,6 +247,7 @@ For an index of all available documentation, see [${llmsLabel}](${llmsPath})${ag
|
|
|
247
247
|
agent: config.agent,
|
|
248
248
|
basePath: config.basePath,
|
|
249
249
|
defaultLanguage: config.defaultLanguage,
|
|
250
|
+
singleLanguage: config.singleLanguage,
|
|
250
251
|
siteUrl: config.siteUrl,
|
|
251
252
|
title: config.title,
|
|
252
253
|
translations: config.translations,
|
package/docs/agents.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Docs
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 2.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 2.13.1-canary.dd9d47d so agents can understand the installed package without web access.
|
|
4
4
|
They are generated from `apps/template/content/docs` during the package build.
|
|
5
5
|
|
|
6
6
|
## How to use these files
|
package/docs/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Documentation
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 2.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 2.13.1-canary.dd9d47d.
|
|
4
4
|
They describe how to build package-backed Geistdocs sites and how to use the package APIs from generated project adapters.
|
|
5
5
|
|
|
6
6
|
## Documentation Index
|
|
@@ -1346,7 +1346,7 @@ export const ai = {
|
|
|
1346
1346
|
};
|
|
1347
1347
|
```
|
|
1348
1348
|
|
|
1349
|
-
Set `eveAgent.prewarm`
|
|
1349
|
+
Set `eveAgent.prewarm` when preparing a durable session while a reader types is appropriate for the site. Fresh-session creation requires eve 0.59 or newer. With eve 0.83 or newer, the same option also prepares existing conversations before follow-up messages, preserving the session and allowing Send to proceed without waiting.
|
|
1350
1350
|
|
|
1351
1351
|
The `ai` config also controls the chat panel and its route:
|
|
1352
1352
|
|
|
@@ -1372,6 +1372,10 @@ See [Ask AI](/docs/ask-ai) for the full eve agent mode behavior, including authe
|
|
|
1372
1372
|
|
|
1373
1373
|
Use [Versioned docs](/docs/versioned-docs) for versioned source setup and [Proxy and markdown routes](/docs/proxy) for route mappings.
|
|
1374
1374
|
|
|
1375
|
+
## Single-language sites
|
|
1376
|
+
|
|
1377
|
+
A site with one language can drop the `[lang]` route segment by setting `singleLanguage: true` in `defineConfig`. Routes then live directly under `app/`, the proxy skips locale rewrites, and route factories resolve every request to `defaultLanguage`. `translations` may only list `defaultLanguage`. Public URLs, `.md` routes, `llms.txt`, and `agents.md` keep their paths.
|
|
1378
|
+
|
|
1375
1379
|
## `source.config.ts`
|
|
1376
1380
|
|
|
1377
1381
|
Use the source-config-safe package export in `source.config.ts`. This file is evaluated by `fumadocs-mdx` during install and build, so it should avoid imports from runtime component entry points such as `@vercel/geistdocs/mdx`.
|
|
@@ -4271,7 +4275,11 @@ export const ai = {
|
|
|
4271
4275
|
};
|
|
4272
4276
|
```
|
|
4273
4277
|
|
|
4274
|
-
Set `prewarm: true` to
|
|
4278
|
+
Set `prewarm: true` to prepare a session when a reader starts typing each question. In a new conversation, the route creates an empty session and binds it to the browser with the session cookie. The first message waits for that request so it can reuse the session. Fresh-session prewarming requires eve 0.59 or newer.
|
|
4279
|
+
|
|
4280
|
+
With eve 0.83 or newer, typing a follow-up also prepares the existing session owner on the deployment accepting the request. An idle owner on another deployment can transfer before Send. This keeps the same session, history, stream position, and expiry, and runs no model call. The client prepares each idle turn once, including restored conversations. Send proceeds without waiting for existing-session preparation; acceptance does not mean a background transfer has finished.
|
|
4281
|
+
|
|
4282
|
+
Prewarming requires [`GEISTDOCS_CHAT_SECRET`](#keep-eve-sessions-across-turns-with-geistdocs_chat_secret). The route verifies the latest answer's session tag against the signed cookie before preparing an existing session. Preparation failures, older agents without support, and expired or mismatched cookies fall back to the normal send path. Leave prewarming disabled when typing a draft should not allocate a durable session before the reader sends a message.
|
|
4275
4283
|
|
|
4276
4284
|
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
4277
4285
|
|
package/docs/manifest.json
CHANGED
package/docs/pages/ask-ai.md
CHANGED
|
@@ -336,7 +336,11 @@ export const ai = {
|
|
|
336
336
|
};
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
-
Set `prewarm: true` to
|
|
339
|
+
Set `prewarm: true` to prepare a session when a reader starts typing each question. In a new conversation, the route creates an empty session and binds it to the browser with the session cookie. The first message waits for that request so it can reuse the session. Fresh-session prewarming requires eve 0.59 or newer.
|
|
340
|
+
|
|
341
|
+
With eve 0.83 or newer, typing a follow-up also prepares the existing session owner on the deployment accepting the request. An idle owner on another deployment can transfer before Send. This keeps the same session, history, stream position, and expiry, and runs no model call. The client prepares each idle turn once, including restored conversations. Send proceeds without waiting for existing-session preparation; acceptance does not mean a background transfer has finished.
|
|
342
|
+
|
|
343
|
+
Prewarming requires [`GEISTDOCS_CHAT_SECRET`](#keep-eve-sessions-across-turns-with-geistdocs_chat_secret). The route verifies the latest answer's session tag against the signed cookie before preparing an existing session. Preparation failures, older agents without support, and expired or mismatched cookies fall back to the normal send path. Leave prewarming disabled when typing a draft should not allocate a durable session before the reader sends a message.
|
|
340
344
|
|
|
341
345
|
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
342
346
|
|
|
@@ -207,7 +207,7 @@ export const ai = {
|
|
|
207
207
|
};
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
Set `eveAgent.prewarm`
|
|
210
|
+
Set `eveAgent.prewarm` when preparing a durable session while a reader types is appropriate for the site. Fresh-session creation requires eve 0.59 or newer. With eve 0.83 or newer, the same option also prepares existing conversations before follow-up messages, preserving the session and allowing Send to proceed without waiting.
|
|
211
211
|
|
|
212
212
|
The `ai` config also controls the chat panel and its route:
|
|
213
213
|
|
|
@@ -233,6 +233,10 @@ See [Ask AI](/docs/ask-ai) for the full eve agent mode behavior, including authe
|
|
|
233
233
|
|
|
234
234
|
Use [Versioned docs](/docs/versioned-docs) for versioned source setup and [Proxy and markdown routes](/docs/proxy) for route mappings.
|
|
235
235
|
|
|
236
|
+
## Single-language sites
|
|
237
|
+
|
|
238
|
+
A site with one language can drop the `[lang]` route segment by setting `singleLanguage: true` in `defineConfig`. Routes then live directly under `app/`, the proxy skips locale rewrites, and route factories resolve every request to `defaultLanguage`. `translations` may only list `defaultLanguage`. Public URLs, `.md` routes, `llms.txt`, and `agents.md` keep their paths.
|
|
239
|
+
|
|
236
240
|
## `source.config.ts`
|
|
237
241
|
|
|
238
242
|
Use the source-config-safe package export in `source.config.ts`. This file is evaluated by `fumadocs-mdx` during install and build, so it should avoid imports from runtime component entry points such as `@vercel/geistdocs/mdx`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/geistdocs",
|
|
3
3
|
"description": "Runtime and CLI for Geistdocs projects.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.1-canary.dd9d47d",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -299,6 +299,10 @@
|
|
|
299
299
|
"./theme.css": "./theme.css",
|
|
300
300
|
"./package.json": "./package.json"
|
|
301
301
|
},
|
|
302
|
+
"scripts": {
|
|
303
|
+
"build": "rm -rf dist docs template && node ./scripts/bundle-template.mjs && node ./scripts/bundle-docs.mjs && tsc -p tsconfig.runtime.json && tsup --config tsup.config.cli.ts",
|
|
304
|
+
"dev": "tsc -p tsconfig.runtime.json --watch --preserveWatchOutput"
|
|
305
|
+
},
|
|
302
306
|
"dependencies": {
|
|
303
307
|
"@ai-sdk/react": "^3.0.134",
|
|
304
308
|
"@clack/prompts": "^0.11.0",
|
|
@@ -333,7 +337,7 @@
|
|
|
333
337
|
"remark-mdx": "^3.1.1",
|
|
334
338
|
"remark-parse": "^11.0.0",
|
|
335
339
|
"remark-stringify": "^11.0.0",
|
|
336
|
-
"sonner": "^2.0.
|
|
340
|
+
"sonner": "^2.0.8",
|
|
337
341
|
"streamdown": "^2.1.0",
|
|
338
342
|
"tailwind-merge": "^3.4.0",
|
|
339
343
|
"ts-morph": "^27.0.2",
|
|
@@ -362,9 +366,5 @@
|
|
|
362
366
|
"react-dom": "^19.2.3",
|
|
363
367
|
"tsup": "^8.5.1",
|
|
364
368
|
"typescript": "^5.9.3"
|
|
365
|
-
},
|
|
366
|
-
"scripts": {
|
|
367
|
-
"build": "rm -rf dist docs template && node ./scripts/bundle-template.mjs && node ./scripts/bundle-docs.mjs && tsc -p tsconfig.runtime.json && tsup --config tsup.config.cli.ts",
|
|
368
|
-
"dev": "tsc -p tsconfig.runtime.json --watch --preserveWatchOutput"
|
|
369
369
|
}
|
|
370
|
-
}
|
|
370
|
+
}
|
|
@@ -334,7 +334,11 @@ export const ai = {
|
|
|
334
334
|
};
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
-
Set `prewarm: true` to
|
|
337
|
+
Set `prewarm: true` to prepare a session when a reader starts typing each question. In a new conversation, the route creates an empty session and binds it to the browser with the session cookie. The first message waits for that request so it can reuse the session. Fresh-session prewarming requires eve 0.59 or newer.
|
|
338
|
+
|
|
339
|
+
With eve 0.83 or newer, typing a follow-up also prepares the existing session owner on the deployment accepting the request. An idle owner on another deployment can transfer before Send. This keeps the same session, history, stream position, and expiry, and runs no model call. The client prepares each idle turn once, including restored conversations. Send proceeds without waiting for existing-session preparation; acceptance does not mean a background transfer has finished.
|
|
340
|
+
|
|
341
|
+
Prewarming requires [`GEISTDOCS_CHAT_SECRET`](#keep-eve-sessions-across-turns-with-geistdocs_chat_secret). The route verifies the latest answer's session tag against the signed cookie before preparing an existing session. Preparation failures, older agents without support, and expired or mismatched cookies fall back to the normal send path. Leave prewarming disabled when typing a draft should not allocate a durable session before the reader sends a message.
|
|
338
342
|
|
|
339
343
|
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
340
344
|
|
|
@@ -205,7 +205,7 @@ export const ai = {
|
|
|
205
205
|
};
|
|
206
206
|
```
|
|
207
207
|
|
|
208
|
-
Set `eveAgent.prewarm`
|
|
208
|
+
Set `eveAgent.prewarm` when preparing a durable session while a reader types is appropriate for the site. Fresh-session creation requires eve 0.59 or newer. With eve 0.83 or newer, the same option also prepares existing conversations before follow-up messages, preserving the session and allowing Send to proceed without waiting.
|
|
209
209
|
|
|
210
210
|
The `ai` config also controls the chat panel and its route:
|
|
211
211
|
|
|
@@ -231,6 +231,10 @@ See [Ask AI](/docs/ask-ai) for the full eve agent mode behavior, including authe
|
|
|
231
231
|
|
|
232
232
|
Use [Versioned docs](/docs/versioned-docs) for versioned source setup and [Proxy and markdown routes](/docs/proxy) for route mappings.
|
|
233
233
|
|
|
234
|
+
## Single-language sites
|
|
235
|
+
|
|
236
|
+
A site with one language can drop the `[lang]` route segment by setting `singleLanguage: true` in `defineConfig`. Routes then live directly under `app/`, the proxy skips locale rewrites, and route factories resolve every request to `defaultLanguage`. `translations` may only list `defaultLanguage`. Public URLs, `.md` routes, `llms.txt`, and `agents.md` keep their paths.
|
|
237
|
+
|
|
234
238
|
## `source.config.ts`
|
|
235
239
|
|
|
236
240
|
Use the source-config-safe package export in `source.config.ts`. This file is evaluated by `fumadocs-mdx` during install and build, so it should avoid imports from runtime component entry points such as `@vercel/geistdocs/mdx`.
|
package/template/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@streamdown/code": "^1.0.1",
|
|
18
18
|
"@vercel/agent-readability": "^0.7.0",
|
|
19
19
|
"@vercel/analytics": "^1.6.1",
|
|
20
|
-
"@vercel/geistdocs": "2.
|
|
20
|
+
"@vercel/geistdocs": "2.13.1-canary.dd9d47d",
|
|
21
21
|
"@vercel/speed-insights": "^1.3.1",
|
|
22
22
|
"ai": "^6.0.132",
|
|
23
23
|
"clsx": "^2.1.1",
|