doccupine 0.0.153 → 0.0.155

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.
@@ -124,7 +124,7 @@ const THEME_INIT_SCRIPT = `(function(){try{var c=document.cookie.split(";").map(
124
124
  export const rootLayoutTemplate = (fontConfig, analyticsEnabled = false) => {
125
125
  return `import type { Metadata } from "next";
126
126
  ${fontImportLine(fontConfig)}
127
- import { StyledComponentsRegistry } from "cherry-styled-components";
127
+ import { StyledComponentsRegistry } from "cherry-styled-components/next";
128
128
  import { colorsDark, colorsLight, theme, themeDark } from "@/app/theme";
129
129
  import { CherryThemeProvider } from "@/components/layout/CherryThemeProvider";
130
130
  import { config } from "@/utils/config";
@@ -1 +1 @@
1
- export declare const platformAiAssistantMdxTemplate = "---\ntitle: \"AI Assistant\"\ndescription: \"Configure the built-in AI assistant that ships with every Doccupine documentation site.\"\ndate: \"2026-02-19\"\nupdated: \"2026-07-30\"\ncategory: \"AI & Integrations\"\ncategoryOrder: 3\ncategoryIcon: \"sparkles\"\norder: 0\nsection: \"Platform\"\n---\n# AI Assistant\n\nEvery Doccupine site ships with a built-in AI assistant that helps visitors find answers across your documentation. The AI settings page lets you choose how it's powered.\n\n## Modes\n\n### Platform (default)\n\nUses Doccupine's built-in integration. Zero configuration needed - the AI assistant works out of the box with no API keys or setup.\n\nEach plan includes a monthly AI usage budget:\n\n| Plan | Monthly Budget |\n| ---------- | -------------- |\n| Trial | $2 |\n| Pro | $20 |\n| Enterprise | $50 |\n\nThe AI settings page shows a usage dashboard with your current spending and remaining budget. Usage resets automatically with your billing cycle.\n\n#### AI credit top-ups\n\nIf you run out of AI credits before your billing cycle resets, you can purchase a one-time top-up to increase your monthly limit. Available tiers:\n\n- **$5**\n- **$10**\n- **$20**\n\nTop-ups are added to your current cycle's budget immediately after purchase and reset when your billing cycle renews. You can purchase multiple top-ups in the same cycle.\n\n### Custom\n\nBring your own API key for full control over the AI model. Supported providers:\n\n- **OpenAI**\n- **Anthropic**\n- **Google**\n\nIn Custom mode, you can also configure:\n\n- **Embedding model** - the model used to index your documentation content\n- **Temperature** - controls response creativity (0.0 for focused answers, up to 1.0 for more varied responses)\n\nFor a complete list of available models, refer to the official documentation of your chosen provider.\n\n### Off\n\nCompletely disables the AI assistant on your site.\n\n<Callout type=\"warning\">\n AI settings are stored as environment variables on your deployment, not in a JSON file. After saving, a redeploy is triggered automatically to apply the changes.\n</Callout>\n\n## AI endpoint authentication\n\nYour site's chat endpoint (`/api/rag`) is public by default, in the same way your documentation is. That means anyone who finds the endpoint can send it questions, and every question spends from your AI budget. On a site you expect to be found, it is worth deciding deliberately whether that is what you want.\n\nTo require a key:\n\n1. Enable **Require API key for AI chat** in the Authentication card.\n2. Enter an API key.\n3. Save.\n\nClients must then send the key as a Bearer token in the `Authorization` header of every request to `/api/rag`.\n\n<Callout type=\"warning\">\n On a public site, turning this on also stops the chat widget on your own documentation from answering visitors. A browser cannot safely hold a server secret, so there is nowhere for the page to keep the key - only API clients that send the Bearer token get answers.\n</Callout>\n\nIf you want readers to keep using the assistant while still closing the endpoint to strangers, protect the whole site with a password instead - see [Authentication](/platform/authentication). Readers who have unlocked the site keep chatting as normal, and the API key becomes a second way in for programmatic clients rather than a replacement for the first.\n\n<Callout type=\"note\">\n The key is stored as an environment variable (`RAG_API_KEY`) on your deployment. After saving, a redeploy is triggered automatically to apply the change. See [Authentication](/authentication) for how the site gate, `RAG_API_KEY`, and `DOCS_API_KEY` interact.\n</Callout>\n\n<Callout type=\"note\">\n Connecting external AI tools (Claude, Cursor, and others) to your site is configured on the dedicated [MCP](/platform/mcp) page, which also covers MCP server authentication.\n</Callout>";
1
+ export declare const platformAiAssistantMdxTemplate = "---\ntitle: \"AI Assistant\"\ndescription: \"One setting per project decides what powers every AI feature - Agent Sync, the editor assistant, repository imports, and the assistant on your published site.\"\ndate: \"2026-02-19\"\nupdated: \"2026-08-17\"\ncategory: \"AI & Integrations\"\ncategoryOrder: 3\ncategoryIcon: \"sparkles\"\norder: 0\nsection: \"Platform\"\n---\n# AI Assistant\n\nOne setting decides what every AI feature in your project spends. It covers both sides of Doccupine:\n\n| Where | What it powers |\n| ----- | -------------- |\n| **In Doccupine** | [Agent Sync](/platform/self-updating-docs) runs, the [editor's](/platform/file-editor) writing assistant, Auto-link's AI selection, and [Import from GitHub](/platform/import-from-github) |\n| **On your site** | The assistant readers use to ask questions about your documentation |\n\nYou'll find it under **Settings \u2192 AI** in the project sidebar.\n\n## Modes\n\n### Enable AI Assistant (default)\n\nUses the AI credit included with your plan. Nothing to configure - no API keys, no provider account.\n\n| Plan | Monthly Budget |\n| ---------- | -------------- |\n| Trial | $5 |\n| Pro | $20 |\n| Enterprise | $50 |\n\nThe settings page shows a usage meter with your current spending and what's left. Usage resets with your billing cycle.\n\nBecause this credit is shared across everything you do, Doccupine keeps single runs bounded: an agent run and a repository import each stop at a spend ceiling and ship whatever they finished, rather than quietly draining a month's budget in one go.\n\n#### AI credit top-ups\n\nIf you run out before your billing cycle resets, you can buy a one-time top-up:\n\n- **$5**\n- **$10**\n- **$20**\n\nTop-ups apply to the current cycle immediately and reset when it renews. You can buy more than one in the same cycle.\n\n### Custom AI Models\n\nBring your own API key. It is used for everything above - writing documentation as well as answering readers - and the spend goes to your provider rather than your Doccupine credit. Supported providers:\n\n- **OpenAI**\n- **Anthropic**\n- **Google**\n\n<Callout type=\"note\">\n Once saved, a key is never shown again - the settings page displays only its last four characters. To change it, select **Replace key** and enter a new one.\n</Callout>\n\n#### Documentation model\n\nWhich model Agent Sync, the editor assistant, and imports write with. This is deliberately separate from the chat model below: one writes whole documentation pages that have to build, the other writes a paragraph into a chat bubble, and the right model for each is rarely the same. Doccupine defaults to a capable model for your provider.\n\n#### Spend limit\n\nYour own key has no ceiling unless you give it one. Turn on **Limit spend per run** to cap a single agent run or import in dollars; Doccupine stops at the limit and keeps whatever it wrote. The limit is per run, not per month.\n\n#### Site assistant options\n\nThese only affect the assistant on your published site:\n\n- **Chat model** - the model that answers readers\n- **Embedding model** - the model used to index your documentation content\n- **Temperature** - response creativity (0.0 for focused answers, up to 1.0 for more varied ones)\n\nFor the full list of available models, see your provider's own documentation.\n\n### Off\n\nTurns AI off for the whole project. The assistant disappears from your published site, and Agent Sync, the editor's writing assistant, and repository imports all stop - nothing can spend on this project until you turn it back on.\n\nYour source links and drift history are untouched, so turning AI back on picks up where you left off.\n\n<Callout type=\"note\">\n AI settings are stored with your project and take effect in Doccupine immediately. Your published site receives them on its next deploy, so Doccupine offers to redeploy after you save.\n</Callout>\n\n<Callout type=\"warning\">\n Only the project **owner** can change these settings or see which key is configured. Team members can see whether AI is on, since it decides whether the agent and the editor assistant are available to them.\n</Callout>\n\n## AI endpoint authentication\n\nYour site's chat endpoint (`/api/rag`) is public by default, in the same way your documentation is. That means anyone who finds the endpoint can send it questions, and every question spends from your AI budget - or your own provider account. On a site you expect to be found, it is worth deciding deliberately whether that is what you want.\n\nTo require a key:\n\n1. Enable **Require API key for AI chat** in the Authentication card.\n2. Enter an API key.\n3. Save.\n\nClients must then send the key as a Bearer token in the `Authorization` header of every request to `/api/rag`.\n\n<Callout type=\"note\">\n Like your provider key, this one is write-only: leave the field empty to keep the key you already saved, and enter a new value only when you want to replace it. Keep your own copy - Doccupine cannot show it to you again.\n</Callout>\n\n<Callout type=\"warning\">\n On a public site, turning this on also stops the chat widget on your own documentation from answering visitors. A browser cannot safely hold a server secret, so there is nowhere for the page to keep the key - only API clients that send the Bearer token get answers.\n</Callout>\n\nIf you want readers to keep using the assistant while still closing the endpoint to strangers, protect the whole site with a password instead - see [Authentication](/platform/authentication). Readers who have unlocked the site keep chatting as normal, and the API key becomes a second way in for programmatic clients rather than a replacement for the first.\n\n<Callout type=\"note\">\n The key is stored as an environment variable (`RAG_API_KEY`) on your deployment. After saving, a redeploy is triggered automatically to apply the change. See [Authentication](/authentication) for how the site gate, `RAG_API_KEY`, and `DOCS_API_KEY` interact.\n</Callout>\n\n<Callout type=\"note\">\n Connecting external AI tools (Claude, Cursor, and others) to your site is configured on the dedicated [MCP](/platform/mcp) page, which also covers MCP server authentication.\n</Callout>";
@@ -1,8 +1,8 @@
1
1
  export const platformAiAssistantMdxTemplate = `---
2
2
  title: "AI Assistant"
3
- description: "Configure the built-in AI assistant that ships with every Doccupine documentation site."
3
+ description: "One setting per project decides what powers every AI feature - Agent Sync, the editor assistant, repository imports, and the assistant on your published site."
4
4
  date: "2026-02-19"
5
- updated: "2026-07-30"
5
+ updated: "2026-08-17"
6
6
  category: "AI & Integrations"
7
7
  categoryOrder: 3
8
8
  categoryIcon: "sparkles"
@@ -11,60 +11,88 @@ section: "Platform"
11
11
  ---
12
12
  # AI Assistant
13
13
 
14
- Every Doccupine site ships with a built-in AI assistant that helps visitors find answers across your documentation. The AI settings page lets you choose how it's powered.
14
+ One setting decides what every AI feature in your project spends. It covers both sides of Doccupine:
15
15
 
16
- ## Modes
16
+ | Where | What it powers |
17
+ | ----- | -------------- |
18
+ | **In Doccupine** | [Agent Sync](/platform/self-updating-docs) runs, the [editor's](/platform/file-editor) writing assistant, Auto-link's AI selection, and [Import from GitHub](/platform/import-from-github) |
19
+ | **On your site** | The assistant readers use to ask questions about your documentation |
20
+
21
+ You'll find it under **Settings → AI** in the project sidebar.
17
22
 
18
- ### Platform (default)
23
+ ## Modes
19
24
 
20
- Uses Doccupine's built-in integration. Zero configuration needed - the AI assistant works out of the box with no API keys or setup.
25
+ ### Enable AI Assistant (default)
21
26
 
22
- Each plan includes a monthly AI usage budget:
27
+ Uses the AI credit included with your plan. Nothing to configure - no API keys, no provider account.
23
28
 
24
29
  | Plan | Monthly Budget |
25
30
  | ---------- | -------------- |
26
- | Trial | $2 |
31
+ | Trial | $5 |
27
32
  | Pro | $20 |
28
33
  | Enterprise | $50 |
29
34
 
30
- The AI settings page shows a usage dashboard with your current spending and remaining budget. Usage resets automatically with your billing cycle.
35
+ The settings page shows a usage meter with your current spending and what's left. Usage resets with your billing cycle.
36
+
37
+ Because this credit is shared across everything you do, Doccupine keeps single runs bounded: an agent run and a repository import each stop at a spend ceiling and ship whatever they finished, rather than quietly draining a month's budget in one go.
31
38
 
32
39
  #### AI credit top-ups
33
40
 
34
- If you run out of AI credits before your billing cycle resets, you can purchase a one-time top-up to increase your monthly limit. Available tiers:
41
+ If you run out before your billing cycle resets, you can buy a one-time top-up:
35
42
 
36
43
  - **$5**
37
44
  - **$10**
38
45
  - **$20**
39
46
 
40
- Top-ups are added to your current cycle's budget immediately after purchase and reset when your billing cycle renews. You can purchase multiple top-ups in the same cycle.
47
+ Top-ups apply to the current cycle immediately and reset when it renews. You can buy more than one in the same cycle.
41
48
 
42
- ### Custom
49
+ ### Custom AI Models
43
50
 
44
- Bring your own API key for full control over the AI model. Supported providers:
51
+ Bring your own API key. It is used for everything above - writing documentation as well as answering readers - and the spend goes to your provider rather than your Doccupine credit. Supported providers:
45
52
 
46
53
  - **OpenAI**
47
54
  - **Anthropic**
48
55
  - **Google**
49
56
 
50
- In Custom mode, you can also configure:
57
+ <Callout type="note">
58
+ Once saved, a key is never shown again - the settings page displays only its last four characters. To change it, select **Replace key** and enter a new one.
59
+ </Callout>
60
+
61
+ #### Documentation model
62
+
63
+ Which model Agent Sync, the editor assistant, and imports write with. This is deliberately separate from the chat model below: one writes whole documentation pages that have to build, the other writes a paragraph into a chat bubble, and the right model for each is rarely the same. Doccupine defaults to a capable model for your provider.
64
+
65
+ #### Spend limit
66
+
67
+ Your own key has no ceiling unless you give it one. Turn on **Limit spend per run** to cap a single agent run or import in dollars; Doccupine stops at the limit and keeps whatever it wrote. The limit is per run, not per month.
51
68
 
69
+ #### Site assistant options
70
+
71
+ These only affect the assistant on your published site:
72
+
73
+ - **Chat model** - the model that answers readers
52
74
  - **Embedding model** - the model used to index your documentation content
53
- - **Temperature** - controls response creativity (0.0 for focused answers, up to 1.0 for more varied responses)
75
+ - **Temperature** - response creativity (0.0 for focused answers, up to 1.0 for more varied ones)
54
76
 
55
- For a complete list of available models, refer to the official documentation of your chosen provider.
77
+ For the full list of available models, see your provider's own documentation.
56
78
 
57
79
  ### Off
58
80
 
59
- Completely disables the AI assistant on your site.
81
+ Turns AI off for the whole project. The assistant disappears from your published site, and Agent Sync, the editor's writing assistant, and repository imports all stop - nothing can spend on this project until you turn it back on.
82
+
83
+ Your source links and drift history are untouched, so turning AI back on picks up where you left off.
84
+
85
+ <Callout type="note">
86
+ AI settings are stored with your project and take effect in Doccupine immediately. Your published site receives them on its next deploy, so Doccupine offers to redeploy after you save.
87
+ </Callout>
60
88
 
61
89
  <Callout type="warning">
62
- AI settings are stored as environment variables on your deployment, not in a JSON file. After saving, a redeploy is triggered automatically to apply the changes.
90
+ Only the project **owner** can change these settings or see which key is configured. Team members can see whether AI is on, since it decides whether the agent and the editor assistant are available to them.
63
91
  </Callout>
64
92
 
65
93
  ## AI endpoint authentication
66
94
 
67
- Your site's chat endpoint (\`/api/rag\`) is public by default, in the same way your documentation is. That means anyone who finds the endpoint can send it questions, and every question spends from your AI budget. On a site you expect to be found, it is worth deciding deliberately whether that is what you want.
95
+ Your site's chat endpoint (\`/api/rag\`) is public by default, in the same way your documentation is. That means anyone who finds the endpoint can send it questions, and every question spends from your AI budget - or your own provider account. On a site you expect to be found, it is worth deciding deliberately whether that is what you want.
68
96
 
69
97
  To require a key:
70
98
 
@@ -74,6 +102,10 @@ To require a key:
74
102
 
75
103
  Clients must then send the key as a Bearer token in the \`Authorization\` header of every request to \`/api/rag\`.
76
104
 
105
+ <Callout type="note">
106
+ Like your provider key, this one is write-only: leave the field empty to keep the key you already saved, and enter a new value only when you want to replace it. Keep your own copy - Doccupine cannot show it to you again.
107
+ </Callout>
108
+
77
109
  <Callout type="warning">
78
110
  On a public site, turning this on also stops the chat widget on your own documentation from answering visitors. A browser cannot safely hold a server secret, so there is nowhere for the page to keep the key - only API clients that send the Bearer token get answers.
79
111
  </Callout>
@@ -1 +1 @@
1
- export declare const platformBuildAndDeployMdxTemplate = "---\ntitle: \"Build & Deploy\"\ndescription: \"Monitor your documentation site's build status and deployment history.\"\ndate: \"2026-02-19\"\ncategory: \"Infrastructure\"\ncategoryOrder: 4\ncategoryIcon: \"server\"\norder: 1\nsection: \"Platform\"\n---\n# Build & Deploy\n\nThe Build & Deploy page shows your documentation site's build and deployment history. Every time you publish changes or push to GitHub, a new deployment is created.\n\n## Deployment status\n\nThe project header always shows your current deployment status:\n\n- **Ready** - your site is live and up to date\n- **Building** - a new deployment is in progress\n- **Queued** - a deployment is waiting to start\n- **Error** - the build failed\n\n<Callout type=\"warning\">\n If a deployment fails, check the build logs for error details. Broken MDX does not fail the build - the affected page renders an inline error panel describing the syntax error while the rest of the site deploys - and invalid frontmatter is ignored with a warning in the build logs.\n</Callout>\n\n## Build logs\n\nClick on any deployment to view its build logs. These show the full output of the build process, making it easy to diagnose issues.\n\n## Deployment triggers\n\nDeployments are triggered in three ways:\n\n1. **Publishing from Doccupine** - clicking Publish in the project header\n2. **Pushing to GitHub** - pushing to the `main` branch of your repository triggers an automatic deploy via webhook\n3. **Configuration changes** - saving AI assistant settings triggers a redeploy since those are stored as environment variables\n\n## Visiting your site\n\nClick the **Visit** button in the project header to open your live documentation site in a new tab.";
1
+ export declare const platformBuildAndDeployMdxTemplate = "---\ntitle: \"Build & Deploy\"\ndescription: \"Monitor your documentation site's build status and deployment history.\"\ndate: \"2026-02-19\"\ncategory: \"Infrastructure\"\ncategoryOrder: 4\ncategoryIcon: \"server\"\norder: 1\nsection: \"Platform\"\n---\n# Build & Deploy\n\nThe Build & Deploy page shows your documentation site's build and deployment history. Every time you publish changes or push to GitHub, a new deployment is created.\n\n## Deployment status\n\nThe project header always shows your current deployment status:\n\n- **Ready** - your site is live and up to date\n- **Building** - a new deployment is in progress\n- **Queued** - a deployment is waiting to start\n- **Error** - the build failed\n\n<Callout type=\"warning\">\n If a deployment fails, check the build logs for error details. Broken MDX does not fail the build - the affected page renders an inline error panel describing the syntax error while the rest of the site deploys - and invalid frontmatter is ignored with a warning in the build logs.\n</Callout>\n\n## Build logs\n\nClick on any deployment to view its build logs. These show the full output of the build process, making it easy to diagnose issues.\n\n## Deployment triggers\n\nDeployments are triggered in three ways:\n\n1. **Publishing from Doccupine** - clicking Publish in the project header\n2. **Pushing to GitHub** - pushing to the `main` branch of your repository triggers an automatic deploy via webhook\n3. **Configuration changes** - saving AI settings triggers a redeploy, since your published site reads them from its deployment\n\n## Visiting your site\n\nClick the **Visit** button in the project header to open your live documentation site in a new tab.";
@@ -35,7 +35,7 @@ Deployments are triggered in three ways:
35
35
 
36
36
  1. **Publishing from Doccupine** - clicking Publish in the project header
37
37
  2. **Pushing to GitHub** - pushing to the \`main\` branch of your repository triggers an automatic deploy via webhook
38
- 3. **Configuration changes** - saving AI assistant settings triggers a redeploy since those are stored as environment variables
38
+ 3. **Configuration changes** - saving AI settings triggers a redeploy, since your published site reads them from its deployment
39
39
 
40
40
  ## Visiting your site
41
41
 
@@ -1 +1 @@
1
- export declare const platformImportFromGithubMdxTemplate = "---\ntitle: \"Import from GitHub\"\ndescription: \"Paste a GitHub repository and let Doccupine's AI write a complete documentation site from your code.\"\ndate: \"2026-07-24\"\ncategory: \"Getting Started\"\ncategoryOrder: 0\norder: 2\nsection: \"Platform\"\n---\n# Import from GitHub\n\nInstead of starting from a blank project, you can point Doccupine at a GitHub repository and have it write the documentation for you. The AI reads your actual source code - not a template - and produces a complete, multi-page MDX site that is deployed and ready to edit.\n\nStart at [doccupine.com/import](https://doccupine.com/import) and paste any GitHub repository URL.\n\n<Callout type=\"note\">\n Any of these formats work: `github.com/owner/repo`, the full `https://` URL, or just `owner/repo`.\n</Callout>\n\n## How it works\n\n<Steps>\n <Step title=\"Paste your repository\">\n Enter the repo URL. If you're not signed in yet, you'll be sent to sign-up first - your repository is remembered, and the import starts on its own once your account is ready. Signing up starts your free 30-day trial and needs no credit card.\n </Step>\n <Step title=\"Choose where the code lives\">\n Pick whether Doccupine manages the new documentation repository for you or creates it on your own GitHub account. This is the same choice described in [Creating a Project](/platform/creating-a-project).\n </Step>\n <Step title=\"Watch it build\">\n A live progress view walks through five stages: **Validate**, **Read repo**, **Plan**, **Write pages**, and **Publish**. You can close the tab - the import keeps running.\n </Step>\n <Step title=\"Open your docs\">\n When the run finishes you're taken straight to the new project, with the site already live.\n </Step>\n</Steps>\n\n## What each stage does\n\n| Stage | What happens |\n| --------------- | ------------------------------------------------------------------------------------------- |\n| **Validate** | Confirms the repository exists and that Doccupine can read it |\n| **Read repo** | Downloads and scans the source files, selecting the ones that best describe the project |\n| **Plan** | Drafts the page outline - sections, titles, and ordering |\n| **Write pages** | Writes each page as MDX, validating every one before it ships |\n| **Publish** | Creates the repository, commits the docs, and deploys the site |\n\n## Private repositories\n\nPublic repositories work straight away. For a private one, connect your GitHub account first - Doccupine then reads the repo with your own credentials.\n\nIf you start an import on a repository Doccupine can't reach, the progress page offers a **Connect GitHub** button. Once you've connected, the import picks up automatically where it left off.\n\n## Cancelling an import\n\nWhile the run is still reading, planning, or writing, a **Cancel import** link is available on the progress page. Nothing has been created on GitHub or your hosting at that point, so cancelling leaves no trace behind.\n\nOnce the run reaches the publishing stage it can no longer be cancelled - by then the repository and deployment are being created.\n\n## Email notifications\n\nA full import can take a few minutes, so you don't have to sit and watch it. Doccupine emails you when the run finishes, with the page count and a link to your new site - or, if something went wrong after the repository was read, an email explaining why.\n\n## What you get\n\n- A **multi-page MDX site** with sections, categories, and navigation already filled in\n- Pages written from your real source files, not boilerplate\n- A **live deployment** you can visit immediately\n- Every page **linked back to the code it came from**, so [Agent Sync](/platform/self-updating-docs) can keep it current from day one\n\n<Callout type=\"success\">\n Nothing about an imported site is locked down. Open any page in the [file editor](/platform/file-editor), change whatever you like, and [publish](/platform/publishing) as usual.\n</Callout>\n\n## Limits\n\nDoccupine reads a bounded number of files and writes a bounded number of pages, so an enormous monorepo produces a solid starting set rather than an endless run. Very large or very sparse repositories may need a few manual pages afterwards.\n\n<Callout type=\"note\">\n The initial generation is on us. It does **not** draw down your project's AI assistant budget, which is reserved for your deployed site's assistant. See [AI Assistant](/platform/ai-assistant) for those budgets.\n</Callout>\n\n## After the import\n\n<Columns cols={2}>\n <Card title=\"Edit your pages\" icon=\"pencil\" href=\"/platform/file-editor\">\n Rewrite, restructure, and add pages in the browser-based editor.\n </Card>\n <Card title=\"Keep them current\" icon=\"refresh-cw\" href=\"/platform/self-updating-docs\">\n Agent Sync rewrites pages when the code they document changes.\n </Card>\n</Columns>";
1
+ export declare const platformImportFromGithubMdxTemplate = "---\ntitle: \"Import from GitHub\"\ndescription: \"Paste a GitHub repository and let Doccupine's AI write a complete documentation site from your code.\"\ndate: \"2026-07-24\"\ncategory: \"Getting Started\"\ncategoryOrder: 0\norder: 2\nsection: \"Platform\"\n---\n# Import from GitHub\n\nInstead of starting from a blank project, you can point Doccupine at a GitHub repository and have it write the documentation for you. The AI reads your actual source code - not a template - and produces a complete, multi-page MDX site that is deployed and ready to edit.\n\nStart at [doccupine.com/import](https://doccupine.com/import) and paste any GitHub repository URL.\n\n<Callout type=\"note\">\n Any of these formats work: `github.com/owner/repo`, the full `https://` URL, or just `owner/repo`.\n</Callout>\n\n## How it works\n\n<Steps>\n <Step title=\"Paste your repository\">\n Enter the repo URL. If you're not signed in yet, you'll be sent to sign-up first - your repository is remembered, and the import starts on its own once your account is ready. Signing up starts your free 30-day trial and needs no credit card.\n </Step>\n <Step title=\"Choose where the code lives\">\n Pick whether Doccupine manages the new documentation repository for you or creates it on your own GitHub account. This is the same choice described in [Creating a Project](/platform/creating-a-project).\n </Step>\n <Step title=\"Choose what writes the docs\">\n Use the AI credit included with your plan, or bring your own OpenAI, Anthropic, or Google API key. Whichever you pick becomes the new project's [AI setting](/platform/ai-assistant), so the import and every later Agent Sync run on it are funded the same way - you can change it afterwards.\n </Step>\n <Step title=\"Watch it build\">\n A live progress view walks through five stages: **Validate**, **Read repo**, **Plan**, **Write pages**, and **Publish**. You can close the tab - the import keeps running.\n </Step>\n <Step title=\"Open your docs\">\n When the run finishes you're taken straight to the new project, with the site already live.\n </Step>\n</Steps>\n\n## What each stage does\n\n| Stage | What happens |\n| --------------- | ------------------------------------------------------------------------------------------- |\n| **Validate** | Confirms the repository exists and that Doccupine can read it |\n| **Read repo** | Downloads and scans the source files, selecting the ones that best describe the project |\n| **Plan** | Drafts the page outline - sections, titles, and ordering |\n| **Write pages** | Writes each page as MDX, validating every one before it ships |\n| **Publish** | Creates the repository, commits the docs, and deploys the site |\n\n## Private repositories\n\nPublic repositories work straight away. For a private one, connect your GitHub account first - Doccupine then reads the repo with your own credentials.\n\nIf you start an import on a repository Doccupine can't reach, the progress page offers a **Connect GitHub** button. Once you've connected, the import picks up automatically where it left off.\n\n## Cancelling an import\n\nWhile the run is still reading, planning, or writing, a **Cancel import** link is available on the progress page. Nothing has been created on GitHub or your hosting at that point, so cancelling leaves no trace behind.\n\nOnce the run reaches the publishing stage it can no longer be cancelled - by then the repository and deployment are being created.\n\n## Email notifications\n\nA full import can take a few minutes, so you don't have to sit and watch it. Doccupine emails you when the run finishes, with the page count and a link to your new site - or, if something went wrong after the repository was read, an email explaining why.\n\n## What you get\n\n- A **multi-page MDX site** with sections, categories, and navigation already filled in\n- Pages written from your real source files, not boilerplate\n- A **live deployment** you can visit immediately\n- Every page **linked back to the code it came from**, so [Agent Sync](/platform/self-updating-docs) can keep it current from day one\n\n<Callout type=\"success\">\n Nothing about an imported site is locked down. Open any page in the [file editor](/platform/file-editor), change whatever you like, and [publish](/platform/publishing) as usual.\n</Callout>\n\n## Limits\n\nDoccupine reads a bounded number of files and writes a bounded number of pages, so an enormous monorepo produces a solid starting set rather than an endless run. Very large or very sparse repositories may need a few manual pages afterwards.\n\n<Callout type=\"note\">\n An import spends the same AI you configured for the project: your included credit, or your own provider key. On included credit it also stops at a per-import ceiling, so a large repository produces a solid starting set rather than consuming a month's budget. See [AI Assistant](/platform/ai-assistant).\n</Callout>\n\n<Callout type=\"warning\">\n If your included AI credit has run out, the import is refused before anything is created - no project, no repository, nothing counted against your plan's project limit. Top up, or bring your own API key, and start it again.\n</Callout>\n\n## After the import\n\n<Columns cols={2}>\n <Card title=\"Edit your pages\" icon=\"pencil\" href=\"/platform/file-editor\">\n Rewrite, restructure, and add pages in the browser-based editor.\n </Card>\n <Card title=\"Keep them current\" icon=\"refresh-cw\" href=\"/platform/self-updating-docs\">\n Agent Sync rewrites pages when the code they document changes.\n </Card>\n</Columns>";
@@ -26,6 +26,9 @@ Start at [doccupine.com/import](https://doccupine.com/import) and paste any GitH
26
26
  <Step title="Choose where the code lives">
27
27
  Pick whether Doccupine manages the new documentation repository for you or creates it on your own GitHub account. This is the same choice described in [Creating a Project](/platform/creating-a-project).
28
28
  </Step>
29
+ <Step title="Choose what writes the docs">
30
+ Use the AI credit included with your plan, or bring your own OpenAI, Anthropic, or Google API key. Whichever you pick becomes the new project's [AI setting](/platform/ai-assistant), so the import and every later Agent Sync run on it are funded the same way - you can change it afterwards.
31
+ </Step>
29
32
  <Step title="Watch it build">
30
33
  A live progress view walks through five stages: **Validate**, **Read repo**, **Plan**, **Write pages**, and **Publish**. You can close the tab - the import keeps running.
31
34
  </Step>
@@ -76,7 +79,11 @@ A full import can take a few minutes, so you don't have to sit and watch it. Doc
76
79
  Doccupine reads a bounded number of files and writes a bounded number of pages, so an enormous monorepo produces a solid starting set rather than an endless run. Very large or very sparse repositories may need a few manual pages afterwards.
77
80
 
78
81
  <Callout type="note">
79
- The initial generation is on us. It does **not** draw down your project's AI assistant budget, which is reserved for your deployed site's assistant. See [AI Assistant](/platform/ai-assistant) for those budgets.
82
+ An import spends the same AI you configured for the project: your included credit, or your own provider key. On included credit it also stops at a per-import ceiling, so a large repository produces a solid starting set rather than consuming a month's budget. See [AI Assistant](/platform/ai-assistant).
83
+ </Callout>
84
+
85
+ <Callout type="warning">
86
+ If your included AI credit has run out, the import is refused before anything is created - no project, no repository, nothing counted against your plan's project limit. Top up, or bring your own API key, and start it again.
80
87
  </Callout>
81
88
 
82
89
  ## After the import
@@ -1 +1 @@
1
- export declare const platformSelfUpdatingDocsMdxTemplate = "---\ntitle: \"Agent Sync\"\ndescription: \"Agent Sync links documentation pages to the code they describe and rewrites them when that code changes, keeping your docs self-updating.\"\ndate: \"2026-07-24\"\nupdated: \"2026-08-01\"\ncategory: \"Editing\"\ncategoryOrder: 1\norder: 2\nsection: \"Platform\"\n---\n# Agent Sync\n\nDocumentation goes stale because code moves and nobody notices. **Agent Sync** closes that gap: every page can be linked to the source files it documents, pinned to the exact commit it was written from. When those files change, the page is flagged as **drifted** - and the agent can rewrite it for you.\n\nYou'll find it under **Agent Sync** in the project sidebar.\n\n## The four views\n\n| View | What it's for |\n| --------- | ----------------------------------------------------------------------------- |\n| **Agent** | Ask questions about your code, or ask the agent to write and update pages |\n| **Map** | Each page beside the sources it came from, with its sync state |\n| **Table** | The same information as a dense, sortable list |\n| **Drift** | The queue of pages whose sources have changed |\n\nA badge on the sidebar link counts the pages currently waiting for attention.\n\n## Asking the agent for docs\n\nThe **Agent** view is a chat. Choose a **source repository** and a **scope** - the whole repo, a folder, or a single file - then either ask a question or ask for a change.\n\n**Questions are answered in the chat.** Ask what a module does, which pages cover a feature, or whether a guide still matches the code, and the agent reads the source and replies without touching your documentation:\n\n> Which pages would break if we renamed the refresh-token endpoint?\n\n**Asking for a change starts a run.** The agent researches the code, plans the pages, and writes them:\n\n> Document the auth module - cover sessions, refresh tokens and the error codes.\n\n> Update the buttons page so it matches the current component.\n\nReplies are threaded, so a follow-up builds on what came before - and agreeing to something the agent suggested is enough to start the work, without repeating yourself:\n\n> Now do the same for the CLI.\n\nA turn that changes documentation shows the steps the agent took, the pages it changed, the sources it read, and what the run cost. You can switch between conversations, rename them, or start a fresh one.\n\nA run commits itself only when every page it wrote is set to auto-update and untouched by hand. Anything else is staged alongside your own edits and waits, and you can settle it from the conversation or from the project's [Publish](/platform/publishing) modal - either way, the other side is kept in step.\n\n<Callout type=\"note\">\n An empty result is a valid answer. If the docs already describe the code accurately, the agent will say so rather than rewriting pages for the sake of it.\n</Callout>\n\n## Linking pages to sources\n\nA page needs at least one source link before drift can be detected. There are three ways to create them:\n\n<Steps>\n <Step title=\"Automatically, as the agent writes\">\n Every page the agent produces records the files it was derived from. Sites created by [Import from GitHub](/platform/import-from-github) arrive fully linked.\n </Step>\n <Step title=\"Auto-link existing pages\">\n **Auto-link code** scans your existing pages, proposes matching files from every source repository, and lets you approve the links in one batch. It's a good way to bootstrap a hand-written site.\n </Step>\n <Step title=\"By hand\">\n Open an MDX page in the editor, select **Source links** in the toolbar, then choose a repository and match one file, a folder, or a path pattern. Hand-written pages can be tracked this way without ever having been generated.\n </Step>\n</Steps>\n\n## Auto-link existing pages\n\nUse **Auto-link code** in the Agent Sync header when you already have documentation but it is not connected to its source code yet.\n\n<Steps>\n <Step title=\"Start the scan\">\n Select **Auto-link code**. Doccupine reads the committed Markdown and MDX pages in your docs repository that do not have source links yet, then compares them with file paths from all your source repositories. Pending editor changes are not included until they are published.\n </Step>\n <Step title=\"Review the suggestions\">\n Suggestions are grouped by page. A strong match means the page names or references the file, so it starts selected. A weaker name match is left unselected for you to confirm. You can change any checkbox, and existing source links are never replaced.\n </Step>\n <Step title=\"Link the selected files\">\n Select **Link selected (N)**. Each approved file is recorded against the page and pinned to the repository's current commit. The page appears as **In sync** in the Map and Table views; Auto-link does not rewrite, commit, or publish the documentation.\n </Step>\n</Steps>\n\nThe normal scan is deterministic and uses no AI credit. **AI auto-select** is optional: it asks the configured AI model to refine the offered matches, uses AI credit, and only changes which checkboxes are selected. You still review the result and select **Link selected (N)** to save it.\n\n<Callout type=\"note\">\n Auto-link skips pages that already have at least one source link. To add another file, folder, or pattern to one of those pages, open the page's **Source links** panel in the editor and link it manually.\n</Callout>\n\nIf the scan finds an OpenAPI specification and your `doccupine.json` does not configure one yet, it also offers **Add to doccupine.json (N)**. This stages the configuration and, when needed, a copy of the specification as pending changes. Review and publish those changes through the normal publishing flow.\n\n## How drift is detected\n\nDoccupine watches your source repositories two ways:\n\n- **Push webhook** - instant, and used whenever Doccupine can install a hook on the repository. Your project's own repository always has one.\n- **Background check** - every 30 minutes, for repositories you don't administer.\n\nThe Source repositories manager shows which one each repo is using, as an **Instant** or **~30 min** badge.\n\n## Review or publish automatically\n\nWhen a linked source changes, what happens next depends on the page:\n\n| Page setting | On drift |\n| -------------------------------- | ---------------------------------------------------------------- |\n| Default | Flagged for review - you trigger the update |\n| **Auto-update** on | The agent rewrites the page and publishes it |\n| Edited by a human | **Always** flagged for review, whatever else is set |\n\nEach row on the Map and Table views has an **Auto-update this page when its source changes** toggle, so you can let routine reference pages look after themselves while a carefully worded overview page always waits for you.\n\nThe same settings decide what happens to a run you started yourself from the Agent view - auto-update is not only about drift. What differs is that a run writes one change set and commits or stages it as a unit: if any page in it resolves to review, the whole set waits. Publishing half a coherent change and leaving the rest behind would be worse than waiting for you.\n\nFor anything in review, **Review update** opens the change set - the same diff view as [publishing](/platform/publishing) - and **Update from source** asks the agent to regenerate that one page on demand.\n\n<Callout type=\"warning\">\n Your edits are never overwritten. Doccupine compares the page's content against what the agent last wrote, so a page you've touched by hand is detected and routed to review - even if auto-update is on. Reformatting, line-ending changes, and blank-line churn don't count as edits.\n</Callout>\n\n## Source repositories\n\nYour project's own repository is always a source, so a repo that holds both code and docs needs no setup at all.\n\nFor a multi-repo setup, add the other repositories from Agent Sync:\n\n<Steps>\n <Step title=\"Open Source repositories\">\n Select **Source repositories** in the Agent Sync header. Your project's repository appears first with a **Default** badge and cannot be removed.\n </Step>\n <Step title=\"Choose another repository\">\n Project owners and editors can select **Add repository**, then search the GitHub repositories they own, collaborate on, or can access through an organization. If GitHub is not connected yet, select **Connect GitHub**, finish authorization, then reopen the manager.\n </Step>\n <Step title=\"Check its connection\">\n Selecting a repository adds it immediately. **Instant** means Doccupine installed a push webhook; **~30 min** means it will check for source changes on a schedule instead. Both modes support the agent, manual source links, Auto-link code, and drift tracking.\n </Step>\n</Steps>\n\nOnce connected, the repository appears in the Agent view's **Source repository** selector and anywhere you create a source link.\n\n<Callout type=\"note\">\n Removing a repository never deletes your documentation pages. If pages still link to it, Doccupine tells you how many are affected and asks again before removing those source links. The pages remain, but they stop tracking changes from that repository.\n</Callout>\n\n## Notifications\n\nDoccupine emails the project owner when pages are ready to review, and when pages have been updated and published. You're notified once per project when pages first drift - a later change to the same page won't email you again until you've dealt with it.\n\n## What it costs\n\nAgent runs use your project's AI credit. Doccupine keeps that spend predictable:\n\n- Automatic regeneration only ever happens for pages you've explicitly set to auto-update. A page waiting for review costs nothing when its source changes.\n- Drift that changes no lines - a merge or a rename that leaves the tracked file's content alone - never triggers a run.\n- Every run has a ceiling on pages and spend.\n- Only one run happens at a time per project.\n\nSee [AI Assistant](/platform/ai-assistant) for how AI is configured and budgeted.\n\n## In the editor\n\nYou don't have to leave the editor to use any of this. The toolbar has a source status button showing whether the open page is in sync, drifted, or unlinked - and why it would need review - and the side panel lets you ask the agent for a block of MDX to drop straight in at your cursor.";
1
+ export declare const platformSelfUpdatingDocsMdxTemplate = "---\ntitle: \"Agent Sync\"\ndescription: \"Agent Sync links documentation pages to the code they describe and rewrites them when that code changes, keeping your docs self-updating.\"\ndate: \"2026-07-24\"\nupdated: \"2026-08-01\"\ncategory: \"Editing\"\ncategoryOrder: 1\norder: 2\nsection: \"Platform\"\n---\n# Agent Sync\n\nDocumentation goes stale because code moves and nobody notices. **Agent Sync** closes that gap: every page can be linked to the source files it documents, pinned to the exact commit it was written from. When those files change, the page is flagged as **drifted** - and the agent can rewrite it for you.\n\nYou'll find it under **Agent Sync** in the project sidebar.\n\n## The four views\n\n| View | What it's for |\n| --------- | ----------------------------------------------------------------------------- |\n| **Agent** | Ask questions about your code, or ask the agent to write and update pages |\n| **Map** | Each page beside the sources it came from, with its sync state |\n| **Table** | The same information as a dense, sortable list |\n| **Drift** | The queue of pages whose sources have changed |\n\nA badge on the sidebar link counts the pages currently waiting for attention.\n\n## Asking the agent for docs\n\nThe **Agent** view is a chat. Choose a **source repository** and a **scope** - the whole repo, a folder, or a single file - then either ask a question or ask for a change.\n\n**Questions are answered in the chat.** Ask what a module does, which pages cover a feature, or whether a guide still matches the code, and the agent reads the source and replies without touching your documentation:\n\n> Which pages would break if we renamed the refresh-token endpoint?\n\n**Asking for a change starts a run.** The agent researches the code, plans the pages, and writes them:\n\n> Document the auth module - cover sessions, refresh tokens and the error codes.\n\n> Update the buttons page so it matches the current component.\n\nReplies are threaded, so a follow-up builds on what came before - and agreeing to something the agent suggested is enough to start the work, without repeating yourself:\n\n> Now do the same for the CLI.\n\nA turn that changes documentation shows the steps the agent took, the pages it changed, the sources it read, and what the run cost. You can switch between conversations, rename them, or start a fresh one.\n\nA run commits itself only when every page it wrote is set to auto-update and untouched by hand. Anything else is staged alongside your own edits and waits, and you can settle it from the conversation or from the project's [Publish](/platform/publishing) modal - either way, the other side is kept in step.\n\n<Callout type=\"note\">\n An empty result is a valid answer. If the docs already describe the code accurately, the agent will say so rather than rewriting pages for the sake of it.\n</Callout>\n\n## Linking pages to sources\n\nA page needs at least one source link before drift can be detected. There are three ways to create them:\n\n<Steps>\n <Step title=\"Automatically, as the agent writes\">\n Every page the agent produces records the files it was derived from. Sites created by [Import from GitHub](/platform/import-from-github) arrive fully linked.\n </Step>\n <Step title=\"Auto-link existing pages\">\n **Auto-link code** scans your existing pages, proposes matching files from every source repository, and lets you approve the links in one batch. It's a good way to bootstrap a hand-written site.\n </Step>\n <Step title=\"By hand\">\n Open an MDX page in the editor, select **Source links** in the toolbar, then choose a repository and match one file, a folder, or a path pattern. Hand-written pages can be tracked this way without ever having been generated.\n </Step>\n</Steps>\n\n## Auto-link existing pages\n\nUse **Auto-link code** in the Agent Sync header when you already have documentation but it is not connected to its source code yet.\n\n<Steps>\n <Step title=\"Start the scan\">\n Select **Auto-link code**. Doccupine reads the committed Markdown and MDX pages in your docs repository that do not have source links yet, then compares them with file paths from all your source repositories. Pending editor changes are not included until they are published.\n </Step>\n <Step title=\"Review the suggestions\">\n Suggestions are grouped by page. A strong match means the page names or references the file, so it starts selected. A weaker name match is left unselected for you to confirm. You can change any checkbox, and existing source links are never replaced.\n </Step>\n <Step title=\"Link the selected files\">\n Select **Link selected (N)**. Each approved file is recorded against the page and pinned to the repository's current commit. The page appears as **In sync** in the Map and Table views; Auto-link does not rewrite, commit, or publish the documentation.\n </Step>\n</Steps>\n\nThe normal scan is deterministic and uses no AI credit. **AI auto-select** is optional: it asks the configured AI model to refine the offered matches, uses AI credit, and only changes which checkboxes are selected. You still review the result and select **Link selected (N)** to save it.\n\n<Callout type=\"note\">\n Auto-link skips pages that already have at least one source link. To add another file, folder, or pattern to one of those pages, open the page's **Source links** panel in the editor and link it manually.\n</Callout>\n\nIf the scan finds an OpenAPI specification and your `doccupine.json` does not configure one yet, it also offers **Add to doccupine.json (N)**. This stages the configuration and, when needed, a copy of the specification as pending changes. Review and publish those changes through the normal publishing flow.\n\n## How drift is detected\n\nDoccupine watches your source repositories two ways:\n\n- **Push webhook** - instant, and used whenever Doccupine can install a hook on the repository. Your project's own repository always has one.\n- **Background check** - every 30 minutes, for repositories you don't administer.\n\nThe Source repositories manager shows which one each repo is using, as an **Instant** or **~30 min** badge.\n\n## Review or publish automatically\n\nWhen a linked source changes, what happens next depends on the page:\n\n| Page setting | On drift |\n| -------------------------------- | ---------------------------------------------------------------- |\n| Default | Flagged for review - you trigger the update |\n| **Auto-update** on | The agent rewrites the page and publishes it |\n| Edited by a human | **Always** flagged for review, whatever else is set |\n\nEach row on the Map and Table views has an **Auto-update this page when its source changes** toggle, so you can let routine reference pages look after themselves while a carefully worded overview page always waits for you.\n\nThe same settings decide what happens to a run you started yourself from the Agent view - auto-update is not only about drift. What differs is that a run writes one change set and commits or stages it as a unit: if any page in it resolves to review, the whole set waits. Publishing half a coherent change and leaving the rest behind would be worse than waiting for you.\n\nFor anything in review, **Review update** opens the change set - the same diff view as [publishing](/platform/publishing) - and **Update from source** asks the agent to regenerate that one page on demand.\n\n<Callout type=\"warning\">\n Your edits are never overwritten. Doccupine compares the page's content against what the agent last wrote, so a page you've touched by hand is detected and routed to review - even if auto-update is on. Reformatting, line-ending changes, and blank-line churn don't count as edits.\n</Callout>\n\n## Source repositories\n\nYour project's own repository is always a source, so a repo that holds both code and docs needs no setup at all.\n\nFor a multi-repo setup, add the other repositories from Agent Sync:\n\n<Steps>\n <Step title=\"Open Source repositories\">\n Select **Source repositories** in the Agent Sync header. Your project's repository appears first with a **Default** badge and cannot be removed.\n </Step>\n <Step title=\"Choose another repository\">\n Project owners and editors can select **Add repository**, then search the GitHub repositories they own, collaborate on, or can access through an organization. If GitHub is not connected yet, select **Connect GitHub**, finish authorization, then reopen the manager.\n </Step>\n <Step title=\"Check its connection\">\n Selecting a repository adds it immediately. **Instant** means Doccupine installed a push webhook; **~30 min** means it will check for source changes on a schedule instead. Both modes support the agent, manual source links, Auto-link code, and drift tracking.\n </Step>\n</Steps>\n\nOnce connected, the repository appears in the Agent view's **Source repository** selector and anywhere you create a source link.\n\n<Callout type=\"note\">\n Removing a repository never deletes your documentation pages. If pages still link to it, Doccupine tells you how many are affected and asks again before removing those source links. The pages remain, but they stop tracking changes from that repository.\n</Callout>\n\n## Notifications\n\nDoccupine emails the project owner when pages are ready to review, and when pages have been updated and published. You're notified once per project when pages first drift - a later change to the same page won't email you again until you've dealt with it.\n\n## What it costs\n\nAgent runs spend whatever the project's [AI setting](/platform/ai-assistant) points at - the AI credit included with your plan, or your own provider key. Doccupine keeps that spend predictable either way:\n\n- Automatic regeneration only ever happens for pages you've explicitly set to auto-update. A page waiting for review costs nothing when its source changes.\n- Drift that changes no lines - a merge or a rename that leaves the tracked file's content alone - never triggers a run.\n- Every run has a ceiling on pages, and a ceiling on spend: a built-in one on included credit, or the limit you set on your own key.\n- Only one run happens at a time per project.\n\nIf AI is switched off for the project, Agent Sync keeps tracking drift but the agent cannot run, and the page says so.\n\n## In the editor\n\nYou don't have to leave the editor to use any of this. The toolbar has a source status button showing whether the open page is in sync, drifted, or unlinked - and why it would need review - and the side panel lets you ask the agent for a block of MDX to drop straight in at your cursor.";
@@ -150,14 +150,14 @@ Doccupine emails the project owner when pages are ready to review, and when page
150
150
 
151
151
  ## What it costs
152
152
 
153
- Agent runs use your project's AI credit. Doccupine keeps that spend predictable:
153
+ Agent runs spend whatever the project's [AI setting](/platform/ai-assistant) points at - the AI credit included with your plan, or your own provider key. Doccupine keeps that spend predictable either way:
154
154
 
155
155
  - Automatic regeneration only ever happens for pages you've explicitly set to auto-update. A page waiting for review costs nothing when its source changes.
156
156
  - Drift that changes no lines - a merge or a rename that leaves the tracked file's content alone - never triggers a run.
157
- - Every run has a ceiling on pages and spend.
157
+ - Every run has a ceiling on pages, and a ceiling on spend: a built-in one on included credit, or the limit you set on your own key.
158
158
  - Only one run happens at a time per project.
159
159
 
160
- See [AI Assistant](/platform/ai-assistant) for how AI is configured and budgeted.
160
+ If AI is switched off for the project, Agent Sync keeps tracking drift but the agent cannot run, and the page says so.
161
161
 
162
162
  ## In the editor
163
163
 
@@ -12,48 +12,48 @@ export const packageJsonTemplate = JSON.stringify({
12
12
  "type-check": "tsgo --noEmit",
13
13
  },
14
14
  dependencies: {
15
- "@langchain/anthropic": "^1.5.2",
16
- "@langchain/core": "^1.2.4",
15
+ "@langchain/anthropic": "^1.5.6",
16
+ "@langchain/core": "^1.2.8",
17
17
  "@langchain/google-genai": "^2.2.0",
18
- "@langchain/openai": "^1.5.5",
18
+ "@langchain/openai": "^1.5.8",
19
19
  "@mdx-js/react": "^3.1.1",
20
20
  "@modelcontextprotocol/sdk": "^1.30.0",
21
21
  "beautiful-mermaid": "^1.1.3",
22
- "cherry-styled-components": "^0.2.15",
23
- langchain: "^1.5.4",
24
- "lucide-react": "^1.28.0",
22
+ "cherry-styled-components": "^0.2.16",
23
+ langchain: "^1.5.9",
24
+ "lucide-react": "^1.31.0",
25
25
  minisearch: "^7.2.0",
26
- next: "16.3.0",
26
+ next: "16.3.1",
27
27
  "next-mdx-remote": "^6.0.0",
28
- "posthog-js": "^1.411.0",
29
- "posthog-node": "^5.47.10",
28
+ "posthog-js": "^1.417.3",
29
+ "posthog-node": "^5.49.1",
30
30
  react: "19.2.8",
31
31
  "react-dom": "19.2.8",
32
32
  "rehype-highlight": "^7.0.2",
33
33
  "rehype-parse": "^9.0.1",
34
34
  "rehype-stringify": "^10.0.1",
35
35
  "remark-gfm": "^4.0.1",
36
- "styled-components": "^6.5.0",
36
+ "styled-components": "^6.5.3",
37
37
  unified: "^11.0.5",
38
38
  zod: "^4.4.3",
39
39
  },
40
40
  devDependencies: {
41
- "@next/env": "16.3.0",
42
- "@next/eslint-plugin-next": "16.3.0",
41
+ "@next/env": "16.3.1",
42
+ "@next/eslint-plugin-next": "16.3.1",
43
43
  "@types/node": "^26",
44
44
  "@types/react": "^19",
45
45
  "@types/react-dom": "^19",
46
- "@typescript-eslint/eslint-plugin": "^8.66.0",
47
- "@typescript-eslint/parser": "^8.66.0",
46
+ "@typescript-eslint/eslint-plugin": "^8.67.0",
47
+ "@typescript-eslint/parser": "^8.67.0",
48
48
  "@typescript/native-preview": "^7.0.0-dev.20260707.2",
49
49
  eslint: "^10",
50
50
  "eslint-plugin-import": "^2.32.0",
51
51
  "eslint-plugin-jsx-a11y": "^6.10.2",
52
52
  "eslint-plugin-react": "^7.37.5",
53
53
  "eslint-plugin-react-hooks": "^7.1.1",
54
- globals: "^17.9.0",
54
+ globals: "^17.11.0",
55
55
  prettier: "^3.9.6",
56
- tsx: "^4.23.6",
56
+ tsx: "^4.23.12",
57
57
  typescript: "npm:@typescript/typescript6@^6.0.2",
58
58
  },
59
59
  }, null, 2) + "\n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doccupine",
3
- "version": "0.0.153",
3
+ "version": "0.0.155",
4
4
  "description": "Free and open-source documentation platform. Write MDX, get a production-ready site with AI chat, built-in components, and an MCP server - in one command.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "engines": {
11
11
  "node": ">=22.12.0"
12
12
  },
13
- "packageManager": "pnpm@11.20.0",
13
+ "packageManager": "pnpm@11.22.0",
14
14
  "scripts": {
15
15
  "clean": "node scripts/clean.mjs",
16
16
  "build": "pnpm clean && tsc",
@@ -42,20 +42,20 @@
42
42
  "author": "Luan Gjokaj",
43
43
  "license": "SEE LICENSE IN LICENSE",
44
44
  "dependencies": {
45
- "@readme/openapi-parser": "^7.0.0",
45
+ "@readme/openapi-parser": "^7.0.1",
46
46
  "chalk": "^6.0.0",
47
47
  "chokidar": "^5.0.0",
48
48
  "commander": "^15.0.0",
49
49
  "fs-extra": "^11.4.0",
50
50
  "gray-matter": "^4.0.3",
51
- "next": "^16.3.0",
51
+ "next": "^16.3.1",
52
52
  "prompts": "^2.4.2",
53
53
  "react": "^19.2.8",
54
54
  "react-dom": "^19.2.8"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/fs-extra": "^11.0.4",
58
- "@types/node": "^26.1.2",
58
+ "@types/node": "^26.2.0",
59
59
  "@types/prompts": "^2.4.9",
60
60
  "prettier": "^3.9.6",
61
61
  "typescript": "^7.0.2",