Skip to content

Commit 3764f98

Browse files
authored
Merge pull request #51 from context-dot-dev/release-please--branches--main--changes--next
release: 2.5.0
2 parents 3454d92 + 1e558ce commit 3764f98

62 files changed

Lines changed: 3847 additions & 2534 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
lint:
1919
timeout-minutes: 10
2020
name: lint
21-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
21+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2222
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2323
steps:
2424
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -41,7 +41,7 @@ jobs:
4141
permissions:
4242
contents: read
4343
id-token: write
44-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
44+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4545
steps:
4646
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4747

@@ -78,7 +78,7 @@ jobs:
7878
test:
7979
timeout-minutes: 10
8080
name: test
81-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
81+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
8282
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
8383
steps:
8484
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.4.0"
2+
".": "2.5.0"
33
}

‎.stats.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-fb56935a194e69348fecd985f7cf8b249795b46af2fb32f6c5c8ef648cf10c15.yml
3-
openapi_spec_hash: 7260a560474283b7ad6ac5d426058ac9
4-
config_hash: daabb160675d86b354711da1e77e5129
1+
configured_endpoints: 32
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-242450ea46eb8c3e843fd6c4bf87e73192b5f62f6da697cd091d13c6aa7a991b.yml
3+
openapi_spec_hash: c1c561976de1abcacede71fd5ab9b3d9
4+
config_hash: 70e7e80b5e87f94981bee396c6cd41e8

‎CHANGELOG.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 2.5.0 (2026-07-22)
4+
5+
Full Changelog: [v2.4.0...v2.5.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.4.0...v2.5.0)
6+
7+
### Features
8+
9+
* **api:** api update ([bbcd1c1](https://github.com/context-dot-dev/context-python-sdk/commit/bbcd1c1d42b9a2080dff7ff42ce7028339d94c25))
10+
* **api:** api update ([4432665](https://github.com/context-dot-dev/context-python-sdk/commit/443266595a9dec4e7ccc081ea1d4967985cb7d67))
11+
* **api:** api update ([94fa1f1](https://github.com/context-dot-dev/context-python-sdk/commit/94fa1f1ee791691e9e65e4d437dd7ce5f619087a))
12+
* **api:** api update ([4ae29fb](https://github.com/context-dot-dev/context-python-sdk/commit/4ae29fb780a4c6d971e2f77d9e7572ba12ccc8a5))
13+
* **api:** api update ([08d9b02](https://github.com/context-dot-dev/context-python-sdk/commit/08d9b029637ba08b636b653659427c9f21f9f9ce))
14+
* **api:** api update ([8592c63](https://github.com/context-dot-dev/context-python-sdk/commit/8592c635674b01bcefbc5563bc53b98e90859b0c))
15+
* **api:** api update ([7d2dfb5](https://github.com/context-dot-dev/context-python-sdk/commit/7d2dfb58157434152a853aebcd4f1289c2e30bd6))
16+
* **api:** manual updates ([e75ea61](https://github.com/context-dot-dev/context-python-sdk/commit/e75ea615fc7e9dba2d84ebc9bd4e4f8c19f98512))
17+
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([b66fcc2](https://github.com/context-dot-dev/context-python-sdk/commit/b66fcc27146584210b8e6d500c7ce11db83cccce))
18+
19+
20+
### Bug Fixes
21+
22+
* **internal:** resolve build failures ([e373980](https://github.com/context-dot-dev/context-python-sdk/commit/e373980c1d881969d2dc37bd2d069fd9c128595e))
23+
324
## 2.4.0 (2026-07-12)
425

526
Full Changelog: [v2.3.0...v2.4.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.3.0...v2.4.0)

‎api.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ from context.dev.types import (
107107
MonitorUpdateResponse,
108108
MonitorListResponse,
109109
MonitorDeleteResponse,
110+
MonitorGetCreditUsageResponse,
111+
MonitorGetLimitsResponse,
110112
MonitorListAccountChangesResponse,
111113
MonitorListAccountRunsResponse,
112114
MonitorListChangesResponse,
@@ -123,6 +125,8 @@ Methods:
123125
- <code title="patch /monitors/{monitor_id}">client.monitors.<a href="./src/context/dev/resources/monitors.py">update</a>(monitor_id, \*\*<a href="src/context/dev/types/monitor_update_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_update_response.py">MonitorUpdateResponse</a></code>
124126
- <code title="get /monitors">client.monitors.<a href="./src/context/dev/resources/monitors.py">list</a>(\*\*<a href="src/context/dev/types/monitor_list_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_response.py">MonitorListResponse</a></code>
125127
- <code title="delete /monitors/{monitor_id}">client.monitors.<a href="./src/context/dev/resources/monitors.py">delete</a>(monitor_id) -> <a href="./src/context/dev/types/monitor_delete_response.py">MonitorDeleteResponse</a></code>
128+
- <code title="get /monitors/credit-usage">client.monitors.<a href="./src/context/dev/resources/monitors.py">get_credit_usage</a>(\*\*<a href="src/context/dev/types/monitor_get_credit_usage_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_get_credit_usage_response.py">MonitorGetCreditUsageResponse</a></code>
129+
- <code title="get /monitors/limits">client.monitors.<a href="./src/context/dev/resources/monitors.py">get_limits</a>() -> <a href="./src/context/dev/types/monitor_get_limits_response.py">MonitorGetLimitsResponse</a></code>
126130
- <code title="get /monitors/changes">client.monitors.<a href="./src/context/dev/resources/monitors.py">list_account_changes</a>(\*\*<a href="src/context/dev/types/monitor_list_account_changes_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_account_changes_response.py">MonitorListAccountChangesResponse</a></code>
127131
- <code title="get /monitors/runs">client.monitors.<a href="./src/context/dev/resources/monitors.py">list_account_runs</a>(\*\*<a href="src/context/dev/types/monitor_list_account_runs_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_account_runs_response.py">MonitorListAccountRunsResponse</a></code>
128132
- <code title="get /monitors/{monitor_id}/changes">client.monitors.<a href="./src/context/dev/resources/monitors.py">list_changes</a>(monitor_id, \*\*<a href="src/context/dev/types/monitor_list_changes_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_changes_response.py">MonitorListChangesResponse</a></code>

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "context.dev"
3-
version = "2.4.0"
3+
version = "2.5.0"
44
description = "The official Python library for the context.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

‎scripts/lint‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ else
1313
fi
1414

1515
echo "==> Running pyright"
16-
uv run pyright
16+
uv run pyright -p .
1717

1818
echo "==> Running mypy"
1919
uv run mypy .

‎src/context/dev/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "context.dev"
4-
__version__ = "2.4.0" # x-release-please-version
4+
__version__ = "2.5.0" # x-release-please-version

‎src/context/dev/resources/ai.py‎

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import httpx
88

99
from ..types import ai_extract_product_params, ai_extract_products_params
10-
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
10+
from .._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
1111
from .._utils import required_args, maybe_transform, async_maybe_transform
1212
from .._compat import cached_property
1313
from .._resource import SyncAPIResource, AsyncAPIResource
@@ -49,6 +49,7 @@ def extract_product(
4949
*,
5050
url: str,
5151
max_age_ms: int | Omit = omit,
52+
tags: SequenceNotStr[str] | Omit = omit,
5253
timeout_ms: int | Omit = omit,
5354
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5455
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -68,6 +69,8 @@ def extract_product(
6869
younger than this many milliseconds. Defaults to 7 days (604800000 ms) when
6970
omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
7071
72+
tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
73+
7174
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
7275
than this value, it will be aborted with a 408 status code. Maximum allowed
7376
value is 300000ms (5 minutes).
@@ -86,6 +89,7 @@ def extract_product(
8689
{
8790
"url": url,
8891
"max_age_ms": max_age_ms,
92+
"tags": tags,
8993
"timeout_ms": timeout_ms,
9094
},
9195
ai_extract_product_params.AIExtractProductParams,
@@ -103,6 +107,7 @@ def extract_products(
103107
domain: str,
104108
max_age_ms: int | Omit = omit,
105109
max_products: int | Omit = omit,
110+
tags: SequenceNotStr[str] | Omit = omit,
106111
timeout_ms: int | Omit = omit,
107112
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
108113
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -126,6 +131,8 @@ def extract_products(
126131
127132
max_products: Maximum number of products to extract.
128133
134+
tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
135+
129136
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
130137
than this value, it will be aborted with a 408 status code. Maximum allowed
131138
value is 300000ms (5 minutes).
@@ -147,6 +154,7 @@ def extract_products(
147154
direct_url: str,
148155
max_age_ms: int | Omit = omit,
149156
max_products: int | Omit = omit,
157+
tags: SequenceNotStr[str] | Omit = omit,
150158
timeout_ms: int | Omit = omit,
151159
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
152160
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -171,6 +179,8 @@ def extract_products(
171179
172180
max_products: Maximum number of products to extract.
173181
182+
tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
183+
174184
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
175185
than this value, it will be aborted with a 408 status code. Maximum allowed
176186
value is 300000ms (5 minutes).
@@ -192,6 +202,7 @@ def extract_products(
192202
domain: str | Omit = omit,
193203
max_age_ms: int | Omit = omit,
194204
max_products: int | Omit = omit,
205+
tags: SequenceNotStr[str] | Omit = omit,
195206
timeout_ms: int | Omit = omit,
196207
direct_url: str | Omit = omit,
197208
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -208,6 +219,7 @@ def extract_products(
208219
"domain": domain,
209220
"max_age_ms": max_age_ms,
210221
"max_products": max_products,
222+
"tags": tags,
211223
"timeout_ms": timeout_ms,
212224
"direct_url": direct_url,
213225
},
@@ -245,6 +257,7 @@ async def extract_product(
245257
*,
246258
url: str,
247259
max_age_ms: int | Omit = omit,
260+
tags: SequenceNotStr[str] | Omit = omit,
248261
timeout_ms: int | Omit = omit,
249262
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
250263
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -264,6 +277,8 @@ async def extract_product(
264277
younger than this many milliseconds. Defaults to 7 days (604800000 ms) when
265278
omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
266279
280+
tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
281+
267282
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
268283
than this value, it will be aborted with a 408 status code. Maximum allowed
269284
value is 300000ms (5 minutes).
@@ -282,6 +297,7 @@ async def extract_product(
282297
{
283298
"url": url,
284299
"max_age_ms": max_age_ms,
300+
"tags": tags,
285301
"timeout_ms": timeout_ms,
286302
},
287303
ai_extract_product_params.AIExtractProductParams,
@@ -299,6 +315,7 @@ async def extract_products(
299315
domain: str,
300316
max_age_ms: int | Omit = omit,
301317
max_products: int | Omit = omit,
318+
tags: SequenceNotStr[str] | Omit = omit,
302319
timeout_ms: int | Omit = omit,
303320
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
304321
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -322,6 +339,8 @@ async def extract_products(
322339
323340
max_products: Maximum number of products to extract.
324341
342+
tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
343+
325344
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
326345
than this value, it will be aborted with a 408 status code. Maximum allowed
327346
value is 300000ms (5 minutes).
@@ -343,6 +362,7 @@ async def extract_products(
343362
direct_url: str,
344363
max_age_ms: int | Omit = omit,
345364
max_products: int | Omit = omit,
365+
tags: SequenceNotStr[str] | Omit = omit,
346366
timeout_ms: int | Omit = omit,
347367
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
348368
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -367,6 +387,8 @@ async def extract_products(
367387
368388
max_products: Maximum number of products to extract.
369389
390+
tags: Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.
391+
370392
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
371393
than this value, it will be aborted with a 408 status code. Maximum allowed
372394
value is 300000ms (5 minutes).
@@ -388,6 +410,7 @@ async def extract_products(
388410
domain: str | Omit = omit,
389411
max_age_ms: int | Omit = omit,
390412
max_products: int | Omit = omit,
413+
tags: SequenceNotStr[str] | Omit = omit,
391414
timeout_ms: int | Omit = omit,
392415
direct_url: str | Omit = omit,
393416
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -404,6 +427,7 @@ async def extract_products(
404427
"domain": domain,
405428
"max_age_ms": max_age_ms,
406429
"max_products": max_products,
430+
"tags": tags,
407431
"timeout_ms": timeout_ms,
408432
"direct_url": direct_url,
409433
},

0 commit comments

Comments
 (0)