Skip to content
Open
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.12.0"
".": "2.13.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 41
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b0c72d2fe5911c9ce155275b954198bf2152e915a7e5b9f719aad50e222b9ef8.yml
openapi_spec_hash: 5cf943ea5718059b7975417b012cee28
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-bf7ffa610bd4a02ea5bcb157521d17a041a48f78d87bf8fe8d812d3cbb87b489.yml
openapi_spec_hash: 90142d96969dea44c46a01abb683c426
config_hash: 0fb0ceca5946298c416cec0cca5260c7
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 2.13.0 (2026-08-21)

Full Changelog: [v2.12.0...v2.13.0](https://github.com/context-dot-dev/context-typescript-sdk/compare/v2.12.0...v2.13.0)

### Features

* **api:** api update ([f5eb318](https://github.com/context-dot-dev/context-typescript-sdk/commit/f5eb318e838c4f1fd12b5c4655ac611845b7cdc7))
* **api:** api update ([ffd01d5](https://github.com/context-dot-dev/context-typescript-sdk/commit/ffd01d589e8b1aefcc9898d3106293e8e1dbc7ac))
* **api:** api update ([b1101a1](https://github.com/context-dot-dev/context-typescript-sdk/commit/b1101a1dbe73834cd33fd721a28158822128c92a))

## 2.12.0 (2026-08-18)

Full Changelog: [v2.11.0...v2.12.0](https://github.com/context-dot-dev/context-typescript-sdk/compare/v2.11.0...v2.12.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "context.dev",
"version": "2.12.0",
"version": "2.13.0",
"description": "The official TypeScript library for the Context Dev API",
"author": "Context Dev <hello@context.dev>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dxt_version": "0.2",
"name": "context.dev-mcp",
"version": "2.12.0",
"version": "2.13.0",
"description": "The official MCP Server for the Context Dev API",
"author": {
"name": "Context Dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "context.dev-mcp",
"version": "2.12.0",
"version": "2.13.0",
"description": "The official MCP Server for the Context Dev API",
"author": "Context Dev <hello@context.dev>",
"types": "dist/index.d.ts",
Expand Down
15 changes: 8 additions & 7 deletions packages/mcp-server/src/local-docs-search.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const newMcpServer = async ({
new McpServer(
{
name: 'context_dev_api',
version: '2.12.0',
version: '2.13.0',
},
{
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
Expand Down
46 changes: 46 additions & 0 deletions src/resources/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,19 @@ export namespace AIExtractProductResponse {
*/
target_audience: Array<string>;

/**
* Normalized stock or ordering availability
*/
availability?:
| 'in_stock'
| 'out_of_stock'
| 'limited_availability'
| 'preorder'
| 'backorder'
| 'made_to_order'
| 'discontinued'
| null;

/**
* Billing frequency for the product
*/
Expand All @@ -137,6 +150,11 @@ export namespace AIExtractProductResponse {
*/
currency?: string | null;

/**
* Dimension statements shown for the product, preserving labels, values, and units
*/
dimensions?: Array<string>;

/**
* URL to the product image
*/
Expand All @@ -152,6 +170,11 @@ export namespace AIExtractProductResponse {
*/
pricing_model?: 'per_seat' | 'flat' | 'tiered' | 'freemium' | 'custom' | null;

/**
* Original or regular price before a displayed discount
*/
regular_price?: number | null;

/**
* URL to the product page
*/
Expand Down Expand Up @@ -225,6 +248,19 @@ export namespace AIExtractProductsResponse {
*/
target_audience: Array<string>;

/**
* Normalized stock or ordering availability
*/
availability?:
| 'in_stock'
| 'out_of_stock'
| 'limited_availability'
| 'preorder'
| 'backorder'
| 'made_to_order'
| 'discontinued'
| null;

/**
* Billing frequency for the product
*/
Expand All @@ -240,6 +276,11 @@ export namespace AIExtractProductsResponse {
*/
currency?: string | null;

/**
* Dimension statements shown for the product, preserving labels, values, and units
*/
dimensions?: Array<string>;

/**
* URL to the product image
*/
Expand All @@ -255,6 +296,11 @@ export namespace AIExtractProductsResponse {
*/
pricing_model?: 'per_seat' | 'flat' | 'tiered' | 'freemium' | 'custom' | null;

/**
* Original or regular price before a displayed discount
*/
regular_price?: number | null;

/**
* URL to the product page
*/
Expand Down
1 change: 1 addition & 0 deletions src/resources/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ export namespace NewsSearchParams {
| 'cg'
| 'ch'
| 'cl'
| 'cz'
| 'de'
| 'fi'
| 'fr'
Expand Down
74 changes: 67 additions & 7 deletions src/resources/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,36 @@ export namespace WebExtractResponse {
numSucceeded: number;

numUrls: number;

/**
* One verified outcome per requested browser action, in request order.
*/
actionsApplied?: Array<Metadata.ActionsApplied>;
}

export namespace Metadata {
export interface ActionsApplied {
instruction: string;

/**
* Applied means the requested page state was visibly verified. Failed means it was
* not verified. Skipped means it was not attempted.
*/
status: 'applied' | 'failed' | 'skipped';

/**
* Visible page evidence used to verify an applied action.
*/
completionEvidence?: string;

durationMs?: number;

error?: string;

method?: string;

targetDescription?: string;
}
}

/**
Expand Down Expand Up @@ -2065,9 +2095,11 @@ export namespace WebWebScrapeSitemapResponse {

export interface WebExtractParams {
/**
* JSON Schema for the returned data object. TypeScript Zod users can pass a JSON
* Schema generated from a Zod object; Python users can pass the equivalent JSON
* Schema object.
* JSON Schema for the returned data object. Image fields such as `image_urls` or
* `product_photos` automatically make page image references available to
* extraction, so product data and photos can be returned in one call. TypeScript
* Zod users can pass a JSON Schema generated from a Zod object; Python users can
* pass the equivalent JSON Schema object.
*/
schema: { [key: string]: unknown };

Expand All @@ -2077,6 +2109,13 @@ export interface WebExtractParams {
*/
url: string;

/**
* Optional browser actions executed in order on the requested page after it loads
* and before extraction. Requires a paid plan. When actions are provided and
* stopAfterMs is omitted, the crawl budget defaults to 110000 ms.
*/
actions?: Array<WebExtractParams.WebScrapeWaitAction | WebExtractParams.WebScrapePerformAction>;

/**
* When true, every returned value must be grounded in facts stated on the page;
* fields that cannot be supported by the page are returned as null/empty. When
Expand Down Expand Up @@ -2131,7 +2170,8 @@ export interface WebExtractParams {

/**
* Soft time budget for the crawl in milliseconds. Min: 10000 (10s). Max: 110000
* (110s). Default: 80000 (80s).
* (110s). Defaults to 80000 (80s), or 110000 (110s) when browser actions are
* provided.
*/
stopAfterMs?: number;

Expand All @@ -2155,6 +2195,24 @@ export interface WebExtractParams {
}

export namespace WebExtractParams {
/**
* Pause for a fixed number of milliseconds before continuing to the next action.
*/
export interface WebScrapeWaitAction {
do: 'wait';

timeMs: number;
}

/**
* Resolve and perform one natural-language browser action.
*/
export interface WebScrapePerformAction {
action: string;

do: 'perform';
}

export interface Pdf {
/**
* Last 1-based PDF page to parse. Must be greater than or equal to start when both
Expand Down Expand Up @@ -3307,7 +3365,9 @@ export interface WebWebCrawlMdParams {
timeoutMS?: number;

/**
* Regex pattern. Only URLs matching this pattern will be followed and scraped.
* Regex pattern. Only URLs matching this pattern will be followed and scraped. An
* automatic prefix scope in the form ^<starting URL> follows a redirect of the
* starting page.
*/
urlRegex?: string;

Expand All @@ -3318,8 +3378,8 @@ export interface WebWebCrawlMdParams {
useMainContentOnly?: boolean;

/**
* Optional browser wait time in milliseconds after initial page load for each
* crawled page. Min: 0. Max: 30000 (30 seconds).
* Browser wait time in milliseconds after initial page load for each crawled page.
* Defaults to 3500 (3.5 seconds). Min: 0. Max: 30000 (30 seconds).
*/
waitForMs?: number;

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '2.12.0'; // x-release-please-version
export const VERSION = '2.13.0'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/web.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('resource web', () => {
additionalProperties: 'bar',
},
url: 'https://example.com',
actions: [{ do: 'wait', timeMs: 0 }],
factCheck: true,
followSubdomains: true,
includeFrames: true,
Expand Down
Loading