Skip to content

Commit a6339dd

Browse files
committed
docs: Update apcore-toolkit import paths in documentation examples to remove the @anthropic scope.
1 parent 8667330 commit a6339dd

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

docs/features/formatting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The `to_markdown()` function converts an arbitrary dictionary or list into a str
3939
=== "TypeScript"
4040

4141
```typescript
42-
import { toMarkdown } from "@anthropic/apcore-toolkit";
42+
import { toMarkdown } from "apcore-toolkit";
4343

4444
const userData = {
4545
name: "Alice",
@@ -91,7 +91,7 @@ The `enrich_schema_descriptions()` utility helps bridge the gap when a JSON Sche
9191
=== "TypeScript"
9292

9393
```typescript
94-
import { enrichSchemaDescriptions } from "@anthropic/apcore-toolkit";
94+
import { enrichSchemaDescriptions } from "apcore-toolkit";
9595

9696
const rawSchema = {
9797
type: "object",

docs/features/openapi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ This produces the flat `input_schema` required by the `ScannedModule`.
5050
=== "TypeScript"
5151

5252
```typescript
53-
import { extractInputSchema, extractOutputSchema } from "@anthropic/apcore-toolkit/openapi";
54-
import { ScannedModule } from "@anthropic/apcore-toolkit";
53+
import { extractInputSchema, extractOutputSchema } from "apcore-toolkit/openapi";
54+
import { ScannedModule } from "apcore-toolkit";
5555

5656
// Load an OpenAPI spec
5757
const openapiSpec = { ... };

docs/features/output-writers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Generates individual `.binding.yaml` files for each scanned module. These files
2323
=== "TypeScript"
2424

2525
```typescript
26-
import { YAMLWriter } from "@anthropic/apcore-toolkit";
26+
import { YAMLWriter } from "apcore-toolkit";
2727

2828
const writer = new YAMLWriter();
2929
writer.write(modules, { outputDir: "./bindings" });
@@ -50,7 +50,7 @@ Generates source files containing decorator-based wrapper functions. This is use
5050
=== "TypeScript"
5151

5252
```typescript
53-
import { TypeScriptWriter } from "@anthropic/apcore-toolkit";
53+
import { TypeScriptWriter } from "apcore-toolkit";
5454

5555
const writer = new TypeScriptWriter();
5656
writer.write(modules, { outputDir: "./generated_apcore" });
@@ -79,7 +79,7 @@ Directly registers the scanned modules into an active `apcore.Registry` instance
7979

8080
```typescript
8181
import { Registry } from "@anthropic/apcore";
82-
import { RegistryWriter } from "@anthropic/apcore-toolkit";
82+
import { RegistryWriter } from "apcore-toolkit";
8383

8484
const registry = new Registry();
8585
const writer = new RegistryWriter();

docs/features/pydantic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ AI agents and protocols like MCP (Model Context Protocol) interact best with fla
4242

4343
```typescript
4444
import { z } from "zod";
45-
import { flattenParams } from "@anthropic/apcore-toolkit";
45+
import { flattenParams } from "apcore-toolkit";
4646

4747
const UserCreate = z.object({
4848
username: z.string(),
@@ -84,7 +84,7 @@ The `resolve_target()` function resolves a string reference into the actual call
8484
=== "TypeScript"
8585

8686
```typescript
87-
import { resolveTarget } from "@anthropic/apcore-toolkit";
87+
import { resolveTarget } from "apcore-toolkit";
8888

8989
// Dynamically load a callable
9090
const viewFunc = await resolveTarget("myapp/api/v1/users:createUser");

docs/features/scanning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ When implementing a custom scanner, you inherit from `BaseScanner`:
5252
=== "TypeScript"
5353

5454
```typescript
55-
import { BaseScanner, ScannedModule } from "@anthropic/apcore-toolkit";
55+
import { BaseScanner, ScannedModule } from "apcore-toolkit";
5656

5757
class MyScanner extends BaseScanner {
5858
scan(options?: { include?: RegExp }): ScannedModule[] {

docs/getting-started.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This guide walks you through installing **apcore-toolkit** and using its core mo
2727
=== "TypeScript"
2828

2929
```bash
30-
npm install @anthropic/apcore-toolkit
30+
npm install apcore-toolkit
3131
```
3232

3333
---
@@ -65,7 +65,7 @@ The `BaseScanner` provides the foundation for extracting metadata from any frame
6565
=== "TypeScript"
6666

6767
```typescript
68-
import { BaseScanner, ScannedModule } from "@anthropic/apcore-toolkit";
68+
import { BaseScanner, ScannedModule } from "apcore-toolkit";
6969

7070
class MyScanner extends BaseScanner {
7171
scan(): ScannedModule[] {
@@ -139,7 +139,7 @@ Generates `.binding.yaml` files for `apcore.BindingLoader`.
139139
=== "TypeScript"
140140

141141
```typescript
142-
import { YAMLWriter } from "@anthropic/apcore-toolkit";
142+
import { YAMLWriter } from "apcore-toolkit";
143143

144144
const writer = new YAMLWriter();
145145
writer.write(modules, { outputDir: "./bindings" });
@@ -161,7 +161,7 @@ Generates decorator-based wrapper files for your language.
161161
=== "TypeScript"
162162

163163
```typescript
164-
import { TypeScriptWriter } from "@anthropic/apcore-toolkit";
164+
import { TypeScriptWriter } from "apcore-toolkit";
165165

166166
const writer = new TypeScriptWriter();
167167
writer.write(modules, { outputDir: "./generated" });
@@ -186,7 +186,7 @@ Registers modules directly into an active `apcore.Registry`.
186186

187187
```typescript
188188
import { Registry } from "@anthropic/apcore";
189-
import { RegistryWriter } from "@anthropic/apcore-toolkit";
189+
import { RegistryWriter } from "apcore-toolkit";
190190

191191
const registry = new Registry();
192192
const writer = new RegistryWriter();
@@ -218,7 +218,7 @@ Flatten complex models into scalar keyword arguments, perfect for MCP (Model Con
218218
=== "TypeScript"
219219

220220
```typescript
221-
import { flattenParams, resolveTarget } from "@anthropic/apcore-toolkit";
221+
import { flattenParams, resolveTarget } from "apcore-toolkit";
222222

223223
// Resolve a target string to a callable
224224
const func = resolveTarget("myapp/views:createTask");
@@ -243,7 +243,7 @@ Extract JSON Schemas directly from OpenAPI operation objects.
243243
=== "TypeScript"
244244

245245
```typescript
246-
import { extractInputSchema, extractOutputSchema } from "@anthropic/apcore-toolkit/openapi";
246+
import { extractInputSchema, extractOutputSchema } from "apcore-toolkit/openapi";
247247

248248
const inputSchema = extractInputSchema(operation, openapiDoc);
249249
const outputSchema = extractOutputSchema(operation, openapiDoc);

0 commit comments

Comments
 (0)