@statelyai/agent 2.0.0-alpha.20 → 2.0.0-alpha.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statelyai/agent",
3
- "version": "2.0.0-alpha.20",
3
+ "version": "2.0.0-alpha.22",
4
4
  "description": "Make invalid agent actions impossible. Agent logic as state machines: deterministic, inspectable, resumable, runs anywhere.",
5
5
  "keywords": [
6
6
  "agent",
@@ -94,51 +94,51 @@
94
94
  "access": "public"
95
95
  },
96
96
  "devDependencies": {
97
- "@ai-sdk/openai": "^3.0.25",
98
- "@anthropic-ai/sdk": "^0.109.1",
99
- "@changesets/changelog-github": "^0.5.0",
100
- "@changesets/cli": "^2.27.9",
97
+ "@ai-sdk/openai": "^4.0.0",
98
+ "@anthropic-ai/sdk": "^0.120.0",
99
+ "@changesets/changelog-github": "^0.5.2",
100
+ "@changesets/cli": "^2.31.1",
101
101
  "@earendil-works/pi-ai": "0.83.0",
102
- "@flue/runtime": "2.0.0",
103
- "@inquirer/prompts": "^8.5.2",
104
- "@langchain/core": "^1.2.4",
105
- "@langchain/openai": "^1.5.5",
106
- "@mastra/core": "^1.54.0",
102
+ "@flue/runtime": "2.0.3",
103
+ "@inquirer/prompts": "^8.6.0",
104
+ "@langchain/core": "^1.2.9",
105
+ "@langchain/openai": "^1.5.10",
106
+ "@mastra/core": "^1.61.0",
107
107
  "@opentelemetry/api": "^1.9.1",
108
108
  "@opentelemetry/context-async-hooks": "^2.10.0",
109
109
  "@opentelemetry/exporter-trace-otlp-http": "^0.221.0",
110
110
  "@opentelemetry/sdk-trace-base": "^2.10.0",
111
111
  "@opentelemetry/sdk-trace-node": "^2.10.0",
112
- "@statelyai/sdk": "^0.16.2",
112
+ "@statelyai/sdk": "^0.22.1",
113
113
  "@types/express": "^5.0.6",
114
- "@types/node": "^20.16.10",
115
- "@types/react": "^19.2.17",
116
- "ai": "^6.0.67",
114
+ "@types/node": "^20.19.43",
115
+ "@types/react": "^19.2.18",
116
+ "ai": "^7.0.0",
117
117
  "ajv": "^8.20.0",
118
- "braintrust": "^3.25.0",
119
- "dotenv": "^16.4.5",
118
+ "braintrust": "^3.28.0",
119
+ "dotenv": "^16.6.1",
120
120
  "express": "^5.2.1",
121
- "hono": "^4.12.30",
121
+ "hono": "^4.13.3",
122
122
  "knip": "6.24.0",
123
- "langchain": "^1.5.4",
124
- "openai": "^6.45.0",
123
+ "langchain": "^1.5.10",
124
+ "openai": "^7.5.0",
125
125
  "oxfmt": "0.57.0",
126
126
  "oxlint": "1.72.0",
127
- "react": "^19.2.7",
128
- "tsdown": "^0.21.7",
129
- "tsx": "^4.21.0",
127
+ "react": "^19.2.8",
128
+ "tsdown": "^0.21.10",
129
+ "tsx": "^4.23.12",
130
130
  "twoslash": "^0.3.9",
131
- "typescript": "^5.6.2",
131
+ "typescript": "^5.9.3",
132
132
  "valibot": "^1.4.2",
133
- "vitest": "^3.2.6",
134
- "xstate": "6.0.0-alpha.41",
135
- "zod": "^4.3.6"
133
+ "vitest": "^4.1.11",
134
+ "xstate": "6.0.0-alpha.48",
135
+ "zod": "^4.4.3"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "@opentelemetry/api": "^1",
139
- "ai": "^6.0.67",
139
+ "ai": "^7.0.0",
140
140
  "ajv": "^8.20.0",
141
- "xstate": ">=6.0.0-alpha.41 <6.0.0"
141
+ "xstate": ">=6.0.0-alpha.46 <6.0.0"
142
142
  },
143
143
  "peerDependenciesMeta": {
144
144
  "@opentelemetry/api": {
package/readme.md CHANGED
@@ -12,7 +12,7 @@ Stately Agent adds model requests and decisions to XState:
12
12
 
13
13
  Stately Agent 2 is in alpha. APIs may change before the stable release.
14
14
 
15
- [Documentation](https://stately.ai/docs/agents) · [Examples](examples/README.md) · [XState](https://github.com/statelyai/xstate)
15
+ [Documentation](https://stately.ai/docs/packages/agent) · [Examples](examples/README.md) · [XState](https://github.com/statelyai/xstate)
16
16
 
17
17
  ## Three starting points
18
18
 
@@ -25,14 +25,14 @@ Stately Agent 2 is in alpha. APIs may change before the stable release.
25
25
  <!-- install command matching the package prerelease channel and package.json peers -->
26
26
 
27
27
  ```sh
28
- pnpm add @statelyai/agent@alpha xstate@alpha zod ai@^6 @ai-sdk/openai@^3
28
+ pnpm add @statelyai/agent@alpha xstate@alpha zod ai@^7 @ai-sdk/openai@^4
29
29
  ```
30
30
 
31
31
  Requirements:
32
32
 
33
- - Node 22.18 or newer, and XState v6 alpha.25 or newer.
33
+ - Node 22.18 or newer, and XState v6 alpha.46 or newer.
34
34
  - The package is ESM-first. CommonJS builds are published too, so `require()` works.
35
- - Provider packages must match your `ai` major: `@ai-sdk/openai@^3` pairs with `ai@^6`. A bare `@ai-sdk/openai` resolves to `@latest`, which can mismatch the `ai` peer.
35
+ - Provider packages must match your `ai` major: `@ai-sdk/openai@^4` pairs with `ai@^7`. A bare `@ai-sdk/openai` resolves to `@latest`, which can mismatch the `ai` peer.
36
36
 
37
37
  ## Quick start
38
38
 
@@ -273,7 +273,7 @@
273
273
  }
274
274
  ]
275
275
  },
276
- "reasoning": {
276
+ "includeReasoning": {
277
277
  "description": "Opt into the structured-output envelope's `reasoning` field.",
278
278
  "type": "boolean"
279
279
  },