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
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ The StackOne AI SDK provides the `StackOneToolSet` class, which fetches tools dy

```bash
# Using npm
npm install @stackone/ai
npm install @stackone/ai zod

# Using yarn
yarn add @stackone/ai
yarn add @stackone/ai zod

# Using pnpm
pnpm add @stackone/ai
pnpm add @stackone/ai zod

# Using bun
bun add @stackone/ai
bun add @stackone/ai zod
```

> **Note:** `zod` is a peer dependency required for AI SDK integrations and internal schema validation. Version `>=3.25.0 <5` is supported.
## Usage

```typescript
Expand Down
3 changes: 2 additions & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"@tanstack/ai": "catalog:examples",
"@tanstack/ai-openai": "catalog:examples",
"ai": "catalog:peer",
"openai": "catalog:peer"
"openai": "catalog:peer",
"zod": "catalog:dev"
},
"devDependencies": {
"@types/node": "catalog:dev",
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
"dependencies": {
"@modelcontextprotocol/sdk": "catalog:prod",
"@orama/orama": "catalog:prod",
"defu": "catalog:prod",
"zod": "catalog:prod"
"defu": "catalog:prod"
},
"devDependencies": {
"@ai-sdk/provider": "catalog:dev",
Expand All @@ -78,12 +77,14 @@
"type-fest": "catalog:dev",
"typescript": "catalog:dev",
"unplugin-unused": "catalog:dev",
"vitest": "catalog:dev"
"vitest": "catalog:dev",
"zod": "catalog:dev"
},
"peerDependencies": {
"@anthropic-ai/sdk": "catalog:peer",
"ai": "catalog:peer",
"openai": "catalog:peer"
"openai": "catalog:peer",
"zod": "catalog:peer"
},
"peerDependenciesMeta": {
"@anthropic-ai/sdk": {
Expand Down
15 changes: 9 additions & 6 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ catalogs:
typescript: ^5.8.3
unplugin-unused: ^0.5.4
vitest: ^4.0.15
zod: ^4.1.13
examples:
'@anthropic-ai/claude-agent-sdk': ^0.1.67
'@tanstack/ai': ^0.0.3
Expand All @@ -36,11 +37,11 @@ catalogs:
'@anthropic-ai/sdk': ^0.52.0
ai: ^5.0.108
openai: ^6.2.0
zod: '>=3.25.0 <5'
prod:
'@modelcontextprotocol/sdk': ^1.24.3
'@orama/orama': ^3.1.11
defu: ^6.1.4
zod: ^4.1.13

enablePrePostScripts: true

Expand Down
2 changes: 1 addition & 1 deletion src/feedback.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { z } from 'zod';
import { z } from 'zod/v4';
import { DEFAULT_BASE_URL } from './consts';
import { BaseTool } from './tool';
import type { ExecuteConfig, ExecuteOptions, JsonObject, JsonValue, ToolParameters } from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/headers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { z } from 'zod/mini';
import { z } from 'zod/v4-mini';
import type { JsonObject } from './types';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { z } from 'zod/mini';
import { z } from 'zod/v4-mini';
import { stackOneHeadersSchema } from './headers';

/**
Expand Down
Loading