Skip to content

feat(marketplace): runs per function (functionId) and run details - #49

Merged
Domantas merged 2 commits into
mainfrom
audit/marketplace-runs
Oct 13, 2026
Merged

Domantas merged 2 commits into
mainfrom
audit/marketplace-runs

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

What changed

  • Hub types regenerated from the running gateway (refactoringV2 81f87e446, item gw-runs, owner decision D10 "runs per function"): GetMarketplaceFunctionRuns gains functionId (exactly one of functionId / triggerId / taskId); MarketplaceFunctionRunDto gains status, correlationId, hasDetails, triggerId, taskId. Additive only; Api types untouched.
  • New test for a function's own runs: GET /{version}/code/marketplace/functions/runs with exactly functionId + limit on the query and no body (tests/hub/test_code.py).
  • Run details: no helper — the logs method takes **request keywords, not a typed request; docs/hub/code.md shows the two-call pattern (hub.logs.get_logs_by_correlation_id(targetCorrelationId=…)).

Tests

uv run pytest 1103 passed (+2, sync + async); ruff check and mypy clean.

Notes

  • Expected release: v3.19.0 (feat → minor). No !, no breaking change.
  • The details route's query field is targetCorrelationId (the gateway DTO property), not correlationId — ?correlationId= binds to the request's own correlation id and the gateway answers 400.
  • Task file: codemash-io/sdks-typegen, branch audit/marketplace-runs, docs/tasks/marketplace-runs-sdks.md.

🤖 Generated with Claude Code

Domantas and others added 2 commits October 13, 2026 09:07
…46 (runs per function)

GetMarketplaceFunctionRuns gains functionId (one of functionId / triggerId /
taskId); MarketplaceFunctionRunDto gains status, correlationId, hasDetails,
triggerId and taskId. Additive only; Api types unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…function_runs

The regenerated GetMarketplaceFunctionRuns reference carries function_id (one
of functionId / triggerId / taskId) and the run row carries status,
correlation_id, has_details, trigger_id and task_id. New sync and async tests
pin the exact query (functionId, limit) and no body. docs/hub/code.md: the
query row names functionId; "Marketplace function runs and their details"
shows the two-call pattern (hub.logs.get_logs_by_correlation_id,
targetCorrelationId).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Domantas
Domantas merged commit 656125a into main Oct 13, 2026
9 checks passed
@Domantas
Domantas deleted the audit/marketplace-runs branch October 13, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant