Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
fix: add Vercel deploy config and workflow for docs site (#1739)
Gaurav Yadavb0fa84e84d9c
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex eb121a6eb..41712e4a9 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -21,7 +21,8 @@ permissions:contents: readjobs:- validate:+ validate-mkdocs:+ name: Validate mkdocs buildif: github.event_name == 'pull_request'runs-on: ubuntu-latesttimeout-minutes: 10@@ -46,7 +47,31 @@ jobs:- name: Build docsrun: mkdocs build- deploy:+ validate-nextjs:+ name: Validate Next.js build+ if: github.event_name == 'pull_request'+ runs-on: ubuntu-latest+ timeout-minutes: 15+ steps:+ - uses: actions/checkout@v6++ - name: Setup Node.js+ uses: actions/setup-node@v6+ with:+ node-version: '20'+ cache: npm+ cache-dependency-path: docs/package-lock.json++ - name: Install dependencies+ run: npm ci+ working-directory: docs++ - name: Build docs+ run: npm run build+ working-directory: docs++ deploy-github-pages:+ name: Deploy GitHub Pagesif: github.event_name != 'pull_request'runs-on: ubuntu-latestpermissions:@@ -73,3 +98,33 @@ jobs:- name: Build and deployrun: mkdocs gh-deploy --force++ deploy-vercel:+ name: Deploy Vercel Docs+ if: >-+ github.event_name != 'pull_request'+ && github.ref == 'refs/heads/main'+ && github.repository_owner == 'headroomlabs-ai'+ runs-on: ubuntu-latest+ permissions:+ contents: read+ steps:+ - uses: actions/checkout@v6++ - name: Setup Node.js+ uses: actions/setup-node@v6+ with:+ node-version: '20'+ cache: npm+ cache-dependency-path: docs/package-lock.json++ - name: Install dependencies+ run: npm ci+ working-directory: docs++ - name: Deploy to Vercel+ run: npx vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}+ working-directory: docs+ env:+ VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}+ VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}diff --git a/docs/package-lock.json b/docs/package-lock.jsonindex e721d4c9b..8ce480503 100644--- a/docs/package-lock.json+++ b/docs/package-lock.json@@ -18,7 +18,6 @@"fumadocs-twoslash": "^3.3.0","fumadocs-typescript": "^5.3.0","fumadocs-ui": "16.11.1",- "headroom-ai": "file:../sdk/typescript","lucide-react": "^1.7.0","next": "16.2.10","react": "^19.2.7",@@ -41,46 +40,6 @@"typescript": "^5.9.3"}},- "../sdk/typescript": {- "name": "headroom-ai",- "version": "0.29.0",- "license": "Apache-2.0",- "devDependencies": {- "@ai-sdk/anthropic": "^3.0.64",- "@ai-sdk/openai": "^3.0.48",- "@ai-sdk/provider": "^1.0.0",- "@anthropic-ai/sdk": "^0.110.0",- "ai": "^6.0.0",- "dotenv": "^17.3.1",- "openai": "^4.80.0",- "tsup": "^8.0.0",- "typescript": "^5.5.0",- "vitest": "^4.1.5"- },- "engines": {- "node": ">=18.0.0"- },- "peerDependencies": {- "@ai-sdk/provider": ">=1.0.0",- "@anthropic-ai/sdk": ">=0.30.0",- "ai": ">=6.0.0",- "openai": ">=4.0.0"- },- "peerDependenciesMeta": {- "@ai-sdk/provider": {- "optional": true- },- "@anthropic-ai/sdk": {- "optional": true- },- "ai": {- "optional": true- },- "openai": {- "optional": true- }- }- },"node_modules/@ai-sdk/gateway": {"version": "3.0.91","dev": true,@@ -2309,6 +2268,8 @@},"node_modules/@shikijs/vscode-textmate": {"version": "10.0.2",+ "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz",+ "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==","license": "MIT"},"node_modules/@stablelib/base64": {@@ -2917,6 +2878,8 @@},"node_modules/argparse": {"version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==","license": "Python-2.0"},"node_modules/aria-hidden": {@@ -3947,6 +3910,8 @@},"node_modules/hast-util-to-html": {"version": "9.0.5",+ "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz",+ "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==","license": "MIT","dependencies": {"@types/hast": "^3.0.0",@@ -4034,10 +3999,6 @@"url": "https://opencollective.com/unified"}},- "node_modules/headroom-ai": {- "resolved": "../sdk/typescript",- "link": true- },"node_modules/html-void-elements": {"version": "3.0.0","license": "MIT",@@ -4444,9 +4405,9 @@}},"node_modules/lucide-react": {- "version": "1.23.0",- "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.23.0.tgz",- "integrity": "sha512-38BpJcD0JhFosxHApP/BYsBetLpQFRoTRzEzstM/XCc3jsAG7wqaY1lgVwxiUe3xqYE+lNxo2PkCmYwXWrwwIw==",+ "version": "1.24.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.24.0.tgz",+ "integrity": "sha512-YT6mBD8lGKkg4nM39enlm94/sfJIiW0YKUT60fBy4YK8tai31ylg1VhGNWxkpSKHo9UagfnZqwIff3HTDQwXeA==","license": "ISC","peerDependencies": {"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"@@ -6133,6 +6094,8 @@},"node_modules/source-map-js": {"version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==","license": "BSD-3-Clause","engines": {"node": ">=0.10.0"diff --git a/docs/package.json b/docs/package.jsonindex bcf4cde55..b08e62089 100644--- a/docs/package.json+++ b/docs/package.json@@ -14,12 +14,11 @@"class-variance-authority": "0.7.1","clsx": "2.1.1","dotted-map": "^3.1.0",- "fumadocs-core": "16.11.1",+"fumadocs-core": "16.11.1","fumadocs-mdx": "15.1.0","fumadocs-twoslash": "^3.3.0","fumadocs-typescript": "^5.3.0","fumadocs-ui": "16.11.1",- "headroom-ai": "file:../sdk/typescript","lucide-react": "^1.7.0","next": "16.2.10","react": "^19.2.7",diff --git a/docs/vercel.json b/docs/vercel.jsonnew file mode 100644index 000000000..5ede4b869--- /dev/null+++ b/docs/vercel.json@@ -0,0 +1,6 @@+{+ "framework": "nextjs",+ "buildCommand": "next build",+ "outputDirectory": ".next",+ "installCommand": "npm install"+}