Conversation
Changed the fallback URL in the defaultArkorCloudApiUrl function from http://localhost:3003 to https://api.arkor.ai, ensuring consistency with the expected production environment. Updated corresponding test case to reflect this change.
Greptile SummaryThis PR updates the Confidence Score: 5/5Safe to merge — minimal, well-tested change with no logic risk. Both changed lines are correct and symmetric: the source value and the test assertion are updated together. Override behaviour is untouched, env-var cleanup in afterEach is already in place, and the suite passes. No P0/P1 findings. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[defaultArkorCloudApiUrl called] --> B{ARKOR_CLOUD_API_URL set?}
B -- Yes --> C[Strip trailing slash]
C --> D[Return env-var value]
B -- No --> E[Return 'https://api.arkor.ai']
Reviews (1): Last reviewed commit: "fix: update default API URL in credentia..." | Re-trigger Greptile |

Summary
defaultArkorCloudApiUrl()fallback in thearkorSDK/CLI fromhttp://localhost:3003to the production endpointhttps://api.arkor.ai, so a freshly-installedarkorbinary talks to the managed cloud out of the box without extra configuration.ARKOR_CLOUD_API_URL(with or without a trailing slash) still wins, which keepsarkor dev/arkor loginetc. usable against a localdev:arkor-cloud-apion:3003or any other deployment.Test plan
pnpm --filter arkor test(12 files, 81 tests passing)ARKOR_CLOUD_API_URLunset,arkor whoami/arkor loginshould hithttps://api.arkor.aiARKOR_CLOUD_API_URL=http://localhost:3003, the same commands should hit the local dev server