Skip to content

Commit b8101bb

Browse files
tylergibbs1claude
andcommitted
Rename stratus-sdk → @usestratus/sdk
Move the agent SDK under the @usestratus org to match mcp-aws. Users install with: bun add @usestratus/sdk Package exports unchanged: @usestratus/sdk → everything @usestratus/sdk/core → provider-agnostic @usestratus/sdk/azure → Azure models Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 701b657 commit b8101bb

9 files changed

Lines changed: 43 additions & 43 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ jobs:
2424

2525
- run: bun install --frozen-lockfile
2626

27-
- name: Build stratus-sdk (needed for mcp-aws typecheck)
28-
run: bun run --filter stratus-sdk build
27+
- name: Build @usestratus/sdk (needed for mcp-aws typecheck)
28+
run: bun run --filter @usestratus/sdk build
2929

30-
- name: Typecheck stratus-sdk
30+
- name: Typecheck @usestratus/sdk
3131
run: bunx tsc -p packages/stratus-sdk/tsconfig.build.json --noEmit
3232

3333
- name: Typecheck mcp-aws
3434
run: bunx tsc -p packages/mcp-aws/tsconfig.json --noEmit
3535

36-
- name: Test stratus-sdk
36+
- name: Test @usestratus/sdk
3737
run: bun test packages/stratus-sdk/tests/core packages/stratus-sdk/tests/azure
3838

3939
- name: Test mcp-aws
@@ -52,7 +52,7 @@ jobs:
5252
- name: Build
5353
run: bun run --filter '*' build
5454

55-
- name: Release stratus-sdk if version is new
55+
- name: Release @usestratus/sdk if version is new
5656
env:
5757
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -67,7 +67,7 @@ jobs:
6767
echo "Creating release $TAG"
6868
gh release create "$TAG" --title "$TAG" --generate-notes
6969
70-
echo "Publishing stratus-sdk@$VERSION to npm"
70+
echo "Publishing @usestratus/sdk@$VERSION to npm"
7171
npm publish --access public
7272
fi
7373

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[usestratus.dev](https://usestratus.dev)
1212

13-
[![npm version](https://img.shields.io/npm/v/stratus-sdk)](https://www.npmjs.com/package/stratus-sdk)
13+
[![npm version](https://img.shields.io/npm/v/@usestratus/sdk)](https://www.npmjs.com/package/@usestratus/sdk)
1414
[![CI](https://github.com/tylergibbs1/stratus/actions/workflows/ci.yml/badge.svg)](https://github.com/tylergibbs1/stratus/actions/workflows/ci.yml)
1515

1616
A better TypeScript agent SDK for Azure OpenAI. Build multi-agent systems with tools, handoffs, guardrails, streaming, structured output, and more.
@@ -27,7 +27,7 @@ A better TypeScript agent SDK for Azure OpenAI. Build multi-agent systems with t
2727
## Install
2828

2929
```bash
30-
bun add stratus-sdk
30+
bun add @usestratus/sdk
3131
```
3232

3333
Stratus requires [Zod](https://zod.dev) as a peer dependency:
@@ -40,7 +40,7 @@ bun add zod
4040

4141
```ts
4242
import { z } from "zod";
43-
import { Agent, AzureResponsesModel, run, tool } from "stratus-sdk";
43+
import { Agent, AzureResponsesModel, run, tool } from "@usestratus/sdk";
4444

4545
const model = new AzureResponsesModel({
4646
endpoint: process.env.AZURE_OPENAI_ENDPOINT!,
@@ -156,7 +156,7 @@ console.log(result.finalOutput); // { name: "Marie Curie", age: 66, occupation:
156156
Sessions maintain conversation history across multiple interactions:
157157

158158
```ts
159-
import { createSession } from "stratus-sdk";
159+
import { createSession } from "@usestratus/sdk";
160160

161161
const session = createSession({ model, tools: [myTool] });
162162

@@ -188,7 +188,7 @@ await using session = createSession({ model });
188188
Transfer control between specialized agents:
189189

190190
```ts
191-
import { handoff } from "stratus-sdk";
191+
import { handoff } from "@usestratus/sdk";
192192

193193
const orderAgent = new Agent({
194194
name: "order_specialist",
@@ -220,7 +220,7 @@ console.log(result.lastAgent.name); // "order_specialist"
220220
Delegate subtasks to child agents that run independently:
221221

222222
```ts
223-
import { subagent } from "stratus-sdk";
223+
import { subagent } from "@usestratus/sdk";
224224

225225
const researcher = new Agent({
226226
name: "researcher",
@@ -247,7 +247,7 @@ const parentAgent = new Agent({
247247
Validate inputs and outputs with guardrails:
248248

249249
```ts
250-
import type { InputGuardrail, OutputGuardrail } from "stratus-sdk";
250+
import type { InputGuardrail, OutputGuardrail } from "@usestratus/sdk";
251251

252252
const profanityFilter: InputGuardrail = {
253253
name: "profanity_filter",
@@ -280,7 +280,7 @@ Guardrails run in parallel. When a tripwire is triggered, an `InputGuardrailTrip
280280
Lifecycle hooks for observability and control:
281281

282282
```ts
283-
import type { AgentHooks } from "stratus-sdk";
283+
import type { AgentHooks } from "@usestratus/sdk";
284284

285285
const hooks: AgentHooks = {
286286
beforeRun: ({ agent, input }) => { /* ... */ },
@@ -307,7 +307,7 @@ const hooks: AgentHooks = {
307307
Opt-in tracing with zero overhead when inactive:
308308

309309
```ts
310-
import { withTrace } from "stratus-sdk";
310+
import { withTrace } from "@usestratus/sdk";
311311

312312
const { result, trace } = await withTrace("my-workflow", () =>
313313
run(agent, "Hello"),
@@ -346,7 +346,7 @@ try {
346346
Track task progress during agent execution:
347347

348348
```ts
349-
import { todoTool, TodoList } from "stratus-sdk";
349+
import { todoTool, TodoList } from "@usestratus/sdk";
350350

351351
const todos = new TodoList();
352352
todos.onUpdate((items) => {
@@ -371,7 +371,7 @@ await run(agent, "Set up a new TypeScript project");
371371
Track token usage and estimate costs:
372372

373373
```ts
374-
import { createCostEstimator } from "stratus-sdk";
374+
import { createCostEstimator } from "@usestratus/sdk";
375375

376376
const estimator = createCostEstimator({
377377
inputTokenCostPer1k: 0.01,
@@ -413,7 +413,7 @@ const agent = new Agent({
413413
Let LLMs write code that orchestrates multiple tools instead of calling them one at a time. Inspired by [Cloudflare's Code Mode](https://blog.cloudflare.com/code-mode-the-better-way-to-use-mcp) — LLMs are better at writing code than making individual tool calls.
414414

415415
```ts
416-
import { createCodeModeTool, FunctionExecutor } from "stratus-sdk/core";
416+
import { createCodeModeTool, FunctionExecutor } from "@usestratus/sdk/core";
417417

418418
const executor = new FunctionExecutor({ timeout: 30_000 });
419419
const codemode = createCodeModeTool({
@@ -451,13 +451,13 @@ Stratus provides three export paths:
451451

452452
```ts
453453
// Everything (core + Azure)
454-
import { Agent, run, tool, AzureChatCompletionsModel, AzureResponsesModel } from "stratus-sdk";
454+
import { Agent, run, tool, AzureChatCompletionsModel, AzureResponsesModel } from "@usestratus/sdk";
455455

456456
// Core only (provider-agnostic)
457-
import { Agent, run, tool } from "stratus-sdk/core";
457+
import { Agent, run, tool } from "@usestratus/sdk/core";
458458

459459
// Azure provider only
460-
import { AzureChatCompletionsModel, AzureResponsesModel } from "stratus-sdk/azure";
460+
import { AzureChatCompletionsModel, AzureResponsesModel } from "@usestratus/sdk/azure";
461461
```
462462

463463
## Configuration
@@ -509,7 +509,7 @@ All errors extend `StratusError`:
509509
| `OutputGuardrailTripwireTriggered` | Output guardrail blocked the response |
510510

511511
```ts
512-
import { ModelError, MaxTurnsExceededError, RunAbortedError } from "stratus-sdk";
512+
import { ModelError, MaxTurnsExceededError, RunAbortedError } from "@usestratus/sdk";
513513

514514
try {
515515
await run(agent, input);
@@ -528,7 +528,7 @@ Stratus is a monorepo with two packages:
528528

529529
| Package | Description |
530530
|---|---|
531-
| [`stratus-sdk`](packages/stratus-sdk/) | Agent SDK for Azure OpenAI (this README) |
531+
| [`@usestratus/sdk`](packages/stratus-sdk/) | Agent SDK for Azure OpenAI (this README) |
532532
| [`@usestratus/mcp-aws`](packages/mcp-aws/) | MCP server framework for AWS — deploy MCP servers to Lambda with progressive disclosure, tool gating, and code mode |
533533

534534
## Development

0 commit comments

Comments
 (0)