You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(readme): reorganise structure and add new integration examples (#223)
* docs(readme): reorganise structure and add new integration examples
Reorganise README for improved readability and discoverability:
- Move Development Environment section to the bottom
- Convert integrations to collapsible details sections
- Add Anthropic Claude integration with toAnthropic() usage
- Add OpenAI Responses API integration with toOpenAIResponses()
- Include installation commands within each integration section
- Add bun as a package manager option throughout
- Remove separate "Optional: AI SDK Integration" section
The collapsible sections reduce visual clutter while keeping all
integration documentation easily accessible. Each integration now
includes its required dependencies inline.
* docs(readme): move Integrations section after Usage
Reorder sections for better logical flow:
1. Installation - how to install the package
2. Usage - basic usage with authentication and account IDs
3. Integrations - framework-specific examples (OpenAI, Anthropic, etc.)
4. Features - advanced functionality
5. Development Environment - contributor setup
Users should understand basic usage patterns before seeing
framework-specific integration examples.
* docs(readme): remove duplicate Optional AI SDK section
Each integration example already includes its own installation
instructions within the collapsible details section.
* docs(readme): add @stackone/ai to all integration install commands
Each integration example now includes @stackone/ai in the npm install
command to ensure users install all required dependencies.
* docs(readme): use gpt-5.1 model in TanStack AI example
* docs(examples): use gpt-5.1 model in TanStack AI example
or load from a .env file using your preferred environment variable library.
42
53
43
-
### Using Nix Flake
54
+
### Account IDs
44
55
45
-
This project includes a Nix flake for reproducible development environments. If you have Nix installed with flakes enabled, you can use it to set up your development environment:
56
+
StackOne uses account IDs to identify different integrations. You can specify the account ID at different levels:
const currentAccountId =tools.getAccountId(); // Get the current account ID
261
-
```
330
+
</details>
262
331
263
332
## Features
264
333
@@ -306,7 +375,7 @@ This is especially useful when you want to:
306
375
307
376
Meta tools enable dynamic tool discovery and execution, allowing AI agents to search for relevant tools based on natural language queries without hardcoding tool names.
308
377
309
-
> ⚠️ **Beta Feature**: Meta tools are currently in beta and the API may change in future versions.
378
+
> **Beta Feature**: Meta tools are currently in beta and the API may change in future versions.
310
379
311
380
#### How Meta Tools Work
312
381
@@ -382,8 +451,6 @@ import { StackOneToolSet } from "@stackone/ai";
You can use the `dryRun` option to return the api arguments from a tool call without making the actual api call:
@@ -528,3 +595,20 @@ When AI agents use this tool, they will:
528
595
5.**Report results**: Show which accounts received the feedback successfully
529
596
530
597
The tool description includes clear instructions for AI agents to always ask for explicit user consent before submitting feedback.
598
+
599
+
## Development Environment
600
+
601
+
### Using Nix Flake
602
+
603
+
This project includes a Nix flake for reproducible development environments. If you have Nix installed with flakes enabled, you can use it to set up your development environment:
604
+
605
+
```bash
606
+
# Enter development shell
607
+
nix develop
608
+
609
+
# Or use direnv for automatic activation
610
+
echo"use flake"> .envrc
611
+
direnv allow
612
+
```
613
+
614
+
The flake provides all necessary development dependencies including Node.js, pnpm, and other build tools.
0 commit comments