Skip to content

Commit f9e103f

Browse files
authored
chore: periodic maintenance (#80)
## Summary - sync `openapi/openapi.json` from upstream and update SDK surface docs for agent import examples plus paginated capability listing - add SDK support and tests across Rust, Python, and TypeScript for `from-example` agent imports and capability list search/pagination - repair maintenance tooling by making `just generate` runnable in a clean checkout and refresh generated Python/TypeScript schema artifacts; update Rust/TypeScript dependency locks to clear audit findings ## Test Plan - [x] Tests pass locally (`just pre-pr`) - [ ] Coverage ≥80% - [x] Linting passes - [x] `just check-cookbook` - [x] `just lint-cookbook` - [x] `cargo audit` - [x] `uvx pip-audit` - [x] `npm audit --audit-level=high` ## Checklist - [x] Follows SDK API consistency guidelines - [x] Updated relevant specs (if applicable) - [x] Added/updated tests - [ ] Updated documentation (if applicable)
1 parent 686275c commit f9e103f

17 files changed

Lines changed: 18097 additions & 677 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ jobs:
169169
run: cd cookbook/rust && cargo run --bin dad-jokes
170170
env:
171171
EVERRUNS_API_KEY: fake-key
172-
EVERRUNS_API_URL: http://localhost:9000
172+
EVERRUNS_API_URL: http://localhost:9000/api
173173
- name: Run Rust cookbook (weather-tools)
174174
timeout-minutes: 3
175175
run: cd cookbook/rust && cargo run --bin weather-tools
176176
env:
177177
EVERRUNS_API_KEY: fake-key
178-
EVERRUNS_API_URL: http://localhost:9000
178+
EVERRUNS_API_URL: http://localhost:9000/api
179179

180180
# Run Python cookbook
181181
- name: Install Python cookbook deps
@@ -185,13 +185,13 @@ jobs:
185185
run: cd cookbook/python && uv run python src/main.py
186186
env:
187187
EVERRUNS_API_KEY: fake-key
188-
EVERRUNS_API_URL: http://localhost:9000
188+
EVERRUNS_API_URL: http://localhost:9000/api
189189
- name: Run Python cookbook (weather-tools)
190190
timeout-minutes: 3
191191
run: cd cookbook/python && uv run python src/weather_tools.py
192192
env:
193193
EVERRUNS_API_KEY: fake-key
194-
EVERRUNS_API_URL: http://localhost:9000
194+
EVERRUNS_API_URL: http://localhost:9000/api
195195

196196
# Run TypeScript cookbook
197197
- name: Build TypeScript SDK
@@ -203,13 +203,13 @@ jobs:
203203
run: cd cookbook/typescript && npx tsx src/main.ts
204204
env:
205205
EVERRUNS_API_KEY: fake-key
206-
EVERRUNS_API_URL: http://localhost:9000
206+
EVERRUNS_API_URL: http://localhost:9000/api
207207
- name: Run TypeScript cookbook (weather-tools)
208208
timeout-minutes: 3
209209
run: cd cookbook/typescript && npx tsx src/weather_tools.ts
210210
env:
211211
EVERRUNS_API_KEY: fake-key
212-
EVERRUNS_API_URL: http://localhost:9000
212+
EVERRUNS_API_URL: http://localhost:9000/api
213213

214214
run-examples:
215215
runs-on: ubuntu-latest
@@ -258,13 +258,13 @@ jobs:
258258
run: cd rust && cargo run --example basic
259259
env:
260260
EVERRUNS_API_KEY: fake-key
261-
EVERRUNS_API_URL: http://localhost:9000
261+
EVERRUNS_API_URL: http://localhost:9000/api
262262
- name: Run Rust initial_files example
263263
timeout-minutes: 3
264264
run: cd rust && cargo run --example initial_files
265265
env:
266266
EVERRUNS_API_KEY: fake-key
267-
EVERRUNS_API_URL: http://localhost:9000
267+
EVERRUNS_API_URL: http://localhost:9000/api
268268

269269
- name: Install Python SDK deps
270270
run: cd python && uv sync --all-extras
@@ -273,13 +273,13 @@ jobs:
273273
run: cd python && uv run python examples/basic.py
274274
env:
275275
EVERRUNS_API_KEY: fake-key
276-
EVERRUNS_API_URL: http://localhost:9000
276+
EVERRUNS_API_URL: http://localhost:9000/api
277277
- name: Run Python initial_files example
278278
timeout-minutes: 3
279279
run: cd python && uv run python examples/initial_files.py
280280
env:
281281
EVERRUNS_API_KEY: fake-key
282-
EVERRUNS_API_URL: http://localhost:9000
282+
EVERRUNS_API_URL: http://localhost:9000/api
283283

284284
- name: Install TypeScript SDK deps
285285
run: cd typescript && npm ci
@@ -288,10 +288,10 @@ jobs:
288288
run: cd typescript && npx tsx examples/basic.ts
289289
env:
290290
EVERRUNS_API_KEY: fake-key
291-
EVERRUNS_API_URL: http://localhost:9000
291+
EVERRUNS_API_URL: http://localhost:9000/api
292292
- name: Run TypeScript initial-files example
293293
timeout-minutes: 3
294294
run: cd typescript && npx tsx examples/initial-files.ts
295295
env:
296296
EVERRUNS_API_KEY: fake-key
297-
EVERRUNS_API_URL: http://localhost:9000
297+
EVERRUNS_API_URL: http://localhost:9000/api

cookbook/python/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cookbook/typescript/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

justfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ fmt:
6666
# Generate types from OpenAPI spec
6767
generate:
6868
cd rust && cargo build
69-
cd python && datamodel-codegen --input ../openapi/openapi.json --output everruns_sdk/_generated/models.py
69+
mkdir -p python/everruns_sdk/_generated
70+
cd python && uvx --from datamodel-code-generator datamodel-codegen --input ../openapi/openapi.json --output everruns_sdk/_generated/models.py
71+
mkdir -p typescript/src/generated
7072
cd typescript && npx openapi-typescript ../openapi/openapi.json -o src/generated/schema.d.ts
7173

7274
# Run coverage for all SDKs

0 commit comments

Comments
 (0)