Skip to content

feat(application): add --share-token to run describe CLI command (PYS…#688

Open
dima-aignostics wants to merge 1 commit into
feat/PYSDK-132-add-run-sharing-to-python-sdkfrom
feat/PYSDK-145-read-run-with-share-token
Open

feat(application): add --share-token to run describe CLI command (PYS…#688
dima-aignostics wants to merge 1 commit into
feat/PYSDK-132-add-run-sharing-to-python-sdkfrom
feat/PYSDK-145-read-run-with-share-token

Conversation

@dima-aignostics

Copy link
Copy Markdown
Contributor

…DK-145)

Recipients holding a share token secret can now describe a run without OAuth login by passing --share-token to application run describe. The token is used directly as the Bearer token for platform API requests.

  • Adds --share-token option to run describe; when set, creates a Client(token_provider=…) bypassing OAuth, with hide_platform_queue_position=True
  • Catches UnauthorizedException and ForbiddenException when using a share token and surfaces a clear "Access denied" message with exit code 1
  • Adds 5 integration tests covering success (text + JSON), not-found, unauthorized, and forbidden paths

@dima-aignostics dima-aignostics requested a review from a team as a code owner June 22, 2026 08:46
@dima-aignostics dima-aignostics force-pushed the feat/PYSDK-145-read-run-with-share-token branch 3 times, most recently from 089d874 to b524be7 Compare June 22, 2026 11:30
…DK-145)

Recipients holding a share token secret can now describe a run without
OAuth login by passing --share-token <secret> to `application run describe`.
The token is used directly as the Bearer token for platform API requests.

- Adds `--share-token` option to `run describe`; when set, creates a
  `Client(token_provider=…)` bypassing OAuth, with `hide_platform_queue_position=True`
- Catches `UnauthorizedException` and `ForbiddenException` when using a share
  token and surfaces a clear "Access denied" message with exit code 1
- Adds 5 integration tests covering success (text + JSON), not-found,
  unauthorized, and forbidden paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dima-aignostics dima-aignostics force-pushed the feat/PYSDK-145-read-run-with-share-token branch from b524be7 to 9510e92 Compare June 22, 2026 11:36
@dima-aignostics dima-aignostics force-pushed the feat/PYSDK-132-add-run-sharing-to-python-sdk branch 6 times, most recently from 6ae872e to 0bc4980 Compare June 23, 2026 21:15
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