@cogitator-ai/next 0.3.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +14 -10
package/README.md CHANGED
@@ -8,6 +8,8 @@ Next.js App Router integration for Cogitator AI runtime. Provides streaming chat
8
8
  pnpm add @cogitator-ai/next @cogitator-ai/core
9
9
  ```
10
10
 
11
+ Works with Next.js 14, 15 and 16 and React 18 and 19.
12
+
11
13
  ## Quick Start
12
14
 
13
15
  ### 1. Create API Route
@@ -20,14 +22,14 @@ import { z } from 'zod';
20
22
 
21
23
  const cogitator = new Cogitator({
22
24
  llm: {
23
- defaultModel: 'openai/gpt-4o-mini',
25
+ defaultModel: 'openai/gpt-6-luna',
24
26
  providers: { openai: { apiKey: process.env.OPENAI_API_KEY! } },
25
27
  },
26
28
  });
27
29
 
28
30
  const agent = new Agent({
29
31
  name: 'assistant',
30
- model: 'openai/gpt-4o-mini',
32
+ model: 'openai/gpt-6-luna',
31
33
  instructions: 'You are a helpful assistant.',
32
34
  tools: [
33
35
  tool({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cogitator-ai/next",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Next.js integration for Cogitator AI runtime",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,20 +19,24 @@
19
19
  "dist",
20
20
  "README.md"
21
21
  ],
22
+ "engines": {
23
+ "node": ">=22.12.0"
24
+ },
22
25
  "dependencies": {
23
- "@cogitator-ai/core": "0.20.0",
24
- "@cogitator-ai/types": "0.23.0"
26
+ "@cogitator-ai/core": "0.21.1",
27
+ "@cogitator-ai/types": "0.24.0"
25
28
  },
26
29
  "peerDependencies": {
27
- "next": ">=14.0.0",
28
- "react": ">=18.0.0"
30
+ "next": "^14.0.0 || ^15.0.0 || ^16.0.0",
31
+ "react": "^18.2.0 || ^19.0.0"
29
32
  },
30
33
  "devDependencies": {
31
- "@types/react": "^18.0.0",
32
- "next": "^15.0.0",
33
- "react": "^18.0.0",
34
- "typescript": "^5.0.0",
35
- "vitest": "^4.0.18"
34
+ "@types/react": "^19.3.0",
35
+ "next": "^16.3.8",
36
+ "react": "^19.3.0",
37
+ "react-dom": "^19.3.0",
38
+ "typescript": "^6.0.3",
39
+ "vitest": "^5.0.3"
36
40
  },
37
41
  "keywords": [
38
42
  "cogitator",