fix(cli): materialize resolved dev org onto every org env alias - #1632
Conversation
Always write the resolved org to all aliases so stale shell values cannot disagree with project-first resolution. Share one alias list between resolve and apply.
|
The latest Agentuity deployment details.
View deployment logs with the Agentuity CLI: |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 53 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Comment |
📦 Canary Packages Publishedversion: PackagesInstallAdd to your {
"dependencies": {
"@agentuity/skills": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-skills-3.1.13-0c0c30f.tgz",
"@agentuity/email": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-email-3.1.13-0c0c30f.tgz",
"@agentuity/drizzle": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-drizzle-3.1.13-0c0c30f.tgz",
"@agentuity/telemetry": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-telemetry-3.1.13-0c0c30f.tgz",
"@agentuity/task": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-task-3.1.13-0c0c30f.tgz",
"@agentuity/cli": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-cli-3.1.13-0c0c30f.tgz",
"@agentuity/vector": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-vector-3.1.13-0c0c30f.tgz",
"@agentuity/storage": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-storage-3.1.13-0c0c30f.tgz",
"@agentuity/api": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-api-3.1.13-0c0c30f.tgz",
"@agentuity/queue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-queue-3.1.13-0c0c30f.tgz",
"@agentuity/aigateway": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-aigateway-3.1.13-0c0c30f.tgz",
"@agentuity/server": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-server-3.1.13-0c0c30f.tgz",
"@agentuity/schedule": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-schedule-3.1.13-0c0c30f.tgz",
"@agentuity/adapter": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-adapter-3.1.13-0c0c30f.tgz",
"@agentuity/schema": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-schema-3.1.13-0c0c30f.tgz",
"@agentuity/genesis": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-genesis-3.1.13-0c0c30f.tgz",
"@agentuity/webhook": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-webhook-3.1.13-0c0c30f.tgz",
"@agentuity/hono": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-hono-3.1.13-0c0c30f.tgz",
"@agentuity/coder": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-coder-3.1.13-0c0c30f.tgz",
"@agentuity/keyvalue": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-keyvalue-3.1.13-0c0c30f.tgz",
"@agentuity/db": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-db-3.1.13-0c0c30f.tgz",
"@agentuity/claude-code": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-claude-code-3.1.13-0c0c30f.tgz",
"@agentuity/runtime": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-runtime-3.1.13-0c0c30f.tgz",
"@agentuity/config": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-config-3.1.13-0c0c30f.tgz",
"create-agentuity": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/create-agentuity-3.1.13-0c0c30f.tgz",
"@agentuity/migrate": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-migrate-3.1.13-0c0c30f.tgz",
"@agentuity/analytics": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-analytics-3.1.13-0c0c30f.tgz",
"@agentuity/pi": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-pi-3.1.13-0c0c30f.tgz",
"@agentuity/coder-tui": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-coder-tui-3.1.13-0c0c30f.tgz",
"@agentuity/opencode": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-opencode-3.1.13-0c0c30f.tgz",
"@agentuity/client": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-client-3.1.13-0c0c30f.tgz",
"@agentuity/vite": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-vite-3.1.13-0c0c30f.tgz",
"@agentuity/stream": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-stream-3.1.13-0c0c30f.tgz",
"@agentuity/sandbox": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-sandbox-3.1.13-0c0c30f.tgz",
"@agentuity/postgres": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-postgres-3.1.13-0c0c30f.tgz",
"@agentuity/core": "https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-core-3.1.13-0c0c30f.tgz"
}
}Or install directly: bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-skills-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-email-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-drizzle-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-telemetry-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-task-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-cli-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-vector-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-storage-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-api-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-queue-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-aigateway-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-server-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-schedule-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-adapter-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-schema-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-genesis-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-webhook-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-hono-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-coder-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-keyvalue-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-db-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-claude-code-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-runtime-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-config-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/create-agentuity-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-migrate-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-analytics-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-pi-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-coder-tui-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-opencode-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-client-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-vite-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-stream-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-sandbox-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-postgres-3.1.13-0c0c30f.tgz
bun add https://agentuity-sdk-objects.t3.storageapi.dev/npm/3.1.13-0c0c30f/agentuity-core-3.1.13-0c0c30f.tgz |
Summary
agentuity devresolves one org (project-first) and materializes it under every known org env alias (AGENTUITY_ORGID,AGENTUITY_ORG_ID,AGENTUITY_CLOUD_ORG_ID) so downstream readers agree regardless of which name they check.AGENTUITY_ORG_IDcannot win after project-first resolution (the remaining bug fromagentuity devinjects the wrong org env #1611).DEV_ORG_ENV_ALIASESlist for both resolve (env fallback) and apply (write).Context
Supersedes #1624 (fork PR from @VihaanAgarwal). That PR correctly started publishing under all three aliases but preserved non-blank per-alias values, which left the stale-env disagreement case open. This branch keeps the original commit and follows up with the materialize-all-aliases behavior.
Test plan
bun test test/cmd/dev/org-id.test.tsinpackages/cli(10 pass)agentuity devwith projectorgIdset and a differentAGENTUITY_ORG_IDin the shell → child process sees the project org on all three aliasesFixes #1611
Co-authored-by: VihaanAgarwal vihaan@clique.so