Skip to content

Add runtime ctx.credentials accessor#162

Merged
khaliqgant merged 1 commit into
mainfrom
codex/ctx-credentials-runtime
May 28, 2026
Merged

Add runtime ctx.credentials accessor#162
khaliqgant merged 1 commit into
mainfrom
codex/ctx-credentials-runtime

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

@khaliqgant khaliqgant commented May 28, 2026

Summary

  • Add a typed CredentialsContext to @agentworkforce/runtime and expose it on WorkforceCtx as ctx.credentials.
  • Read the existing cloud runtime env vars (RELAYFILE_URL, RELAYFILE_TOKEN, RELAYFILE_WORKSPACE_ID, CLOUD_API_URL, CLOUD_API_ACCESS_TOKEN) with trailing slash normalization for URL fields.
  • Cover present, missing, and URL-normalization behavior in the existing runtime ctx tests.

Version Baseline

  • Fetched workforce origin/main before implementation: 17d62f6.
  • Current npm version before this PR: @agentworkforce/runtime@3.0.31.
  • Slice A publish target after merge is the next umbrella version: @agentworkforce/runtime@3.0.32.

Verification

  • corepack pnpm install
  • corepack pnpm --filter @agentworkforce/persona-kit build
  • corepack pnpm --filter @agentworkforce/runtime test
  • corepack pnpm run typecheck:examples
  • corepack pnpm -r run build && corepack pnpm run lint && corepack pnpm run typecheck && corepack pnpm run test
  • git diff --check

Related: AgentWorkforce/cloud#1350

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 28, 2026

Warning

Review limit reached

@khaliqgant, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 46 minutes and 24 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c6bdc5f9-1257-43d2-877c-547e7d5deb18

📥 Commits

Reviewing files that changed from the base of the PR and between 17d62f6 and b6e14ee.

📒 Files selected for processing (5)
  • examples/notion-essay-pr/notion-essay-pr.smoke.test.ts
  • packages/runtime/src/ctx.test.ts
  • packages/runtime/src/ctx.ts
  • packages/runtime/src/index.ts
  • packages/runtime/src/types.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/ctx-credentials-runtime

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@khaliqgant khaliqgant force-pushed the codex/ctx-credentials-runtime branch from 5893173 to b6e14ee Compare May 28, 2026 14:21
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Re-trigger cubic

@khaliqgant khaliqgant merged commit 52cec6b into main May 28, 2026
2 checks passed
@khaliqgant khaliqgant deleted the codex/ctx-credentials-runtime branch May 28, 2026 14:23
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