Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
run: npm test

- name: Install Next.js example
working-directory: examples/nextjs-basic
working-directory: examples/integrations/nextjs-basic
run: npm ci

- name: Build Next.js example
working-directory: examples/nextjs-basic
working-directory: examples/integrations/nextjs-basic
run: npm run build
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ npm install @rlippmann/context-compiler

## Examples

- `examples/nextjs-basic/` — minimal Next.js App Router integration
- `examples/integrations/nextjs-basic/` — minimal Next.js App Router integration
- request flow with compiler state where explicit instructions stay consistent across turns
- `clarify` blocks LLM calls
- per-session compiler state via checkpoint export/import so sessions can resume safely
- `examples/node-basic/` — minimal Node HTTP server integration
- `examples/integrations/node-basic/` — minimal Node HTTP server integration
- `examples/integrations/vercel_ai_sdk_structured_output/` — host-side schema selection for Vercel AI SDK structured output

## Quick Start
Expand Down
4 changes: 3 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ Shows that preview does not mutate live engine state, then applies the same inpu

## Integrations

- [`examples/integrations/vercel_ai_sdk_structured_output/README.md`](/Users/rlippmann/Source/context-compiler-ts/examples/integrations/vercel_ai_sdk_structured_output/README.md)
- [Next.js integration](integrations/nextjs-basic/README.md)
- [Node integration](integrations/node-basic/README.md)
- [Vercel AI SDK structured output](integrations/vercel_ai_sdk_structured_output/README.md)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:integration": "node ../../scripts/test-nextjs-integration.js"
},
"dependencies": {
"@rlippmann/context-compiler": "file:../..",
"@rlippmann/context-compiler": "file:../../..",
"next": "^15.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm install
```

```bash
npx tsx examples/node-basic/server.ts
npx tsx examples/integrations/node-basic/server.ts
```

This example uses `exportCheckpointJson()` / `importCheckpointJson()` for per-session persistence.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rlippmann/context-compiler",
"version": "0.7.1",
"version": "0.7.2",
"description": "Store AI rules and corrections separately from chat history so they stay consistent across turns.",
"keywords": [
"llm",
Expand Down Expand Up @@ -39,6 +39,18 @@
},
"files": [
"dist",
"examples/README.md",
"examples/integrations/nextjs-basic/README.md",
"examples/integrations/nextjs-basic/app",
"examples/integrations/nextjs-basic/lib",
"examples/integrations/nextjs-basic/next-env.d.ts",
"examples/integrations/nextjs-basic/package.json",
"examples/integrations/nextjs-basic/package-lock.json",
"examples/integrations/nextjs-basic/tsconfig.json",
"examples/integrations/node-basic/README.md",
"examples/integrations/node-basic/server.ts",
"examples/integrations/vercel_ai_sdk_structured_output/README.md",
"examples/integrations/vercel_ai_sdk_structured_output/index.ts",
"LICENSE",
"README.md"
],
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"index.ts",
"src/**/*.ts",
"examples/*.ts",
"examples/integrations/**/*.ts",
"examples/integrations/vercel_ai_sdk_structured_output/**/*.ts",
"demos/**/*.ts",
"demos/**/*.d.ts"
],
Expand Down
Loading