chore(stainless): add stlc workspace config and custom-code tracking - #423
Open
aringuyen3 wants to merge 2 commits into
Open
chore(stainless): add stlc workspace config and custom-code tracking#423aringuyen3 wants to merge 2 commits into
aringuyen3 wants to merge 2 commits into
Conversation
Records the sealed custom-code state for the python and typescript targets so hand-written changes survive SDK regeneration. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The stlc workspace was never committed, so `stlc status` flagged the Python target as unable to seal its integration state. Adds: - stainless/workspace.json - points at the spec, config and output dir - stainless/stainless.yml - the SDK generation config - stainless/.gitignore - excludes generated output (sdks/) and build manifests (builds/) Updates the Python custom-code tracking file to the current seal. These tracking files are how hand-written SDK code survives regeneration, so they have to live in version control alongside the config. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Comment on lines
+35
to
+36
| production: http://localhost:5003 | ||
| development: http://localhost:5003 |
Contributor
There was a problem hiding this comment.
Production SDK targets localhost
When a generated client uses the production environment without overriding its base URL, it sends requests to http://localhost:5003 rather than the deployed AgentEx service, causing connection failures or requests to an unrelated local process; when AGENTEX_SDK_API_KEY is configured, that process also receives the bearer credential.
How this was verified: The production URL was traced from the new environments map to the generated client's bearer-auth configuration, while repository deployment documentation identifies localhost:5003 as development-only.
Prompt To Fix With AI
This is a comment left during a code review.
Path: stainless/stainless.yml
Line: 35-36
Comment:
**Production SDK targets localhost**
When a generated client uses the production environment without overriding its base URL, it sends requests to `http://localhost:5003` rather than the deployed AgentEx service, causing connection failures or requests to an unrelated local process; when `AGENTEX_SDK_API_KEY` is configured, that process also receives the bearer credential.
**How this was verified:** The production URL was traced from the new environments map to the generated client's bearer-auth configuration, while repository deployment documentation identifies localhost:5003 as development-only.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commits the
stlcworkspace so SDK generation is reproducible from this repo.The workspace directory existed locally but had never been checked in, so
stlc statusreported the Python target as unable to seal its custom-code integration state.What's added
stainless/workspace.json../agentex/openapi.yaml), the config, and the SDK output dirstainless/stainless.ymlstainless/.gitignoresdks/) and build manifests (builds/)stainless/custom-code/**The tracking files are how hand-written SDK code survives regeneration — without them in version control, a later
stlc buildcan't tell which commits its patches apply on top of. The Python tracking file is updated to the current seal.Scope
No application code, no spec changes, no migrations. Everything is under
stainless/, and generated output stays ignored.🤖 Generated with Claude Code
Greptile Summary
Commits the Stainless workspace, generation configuration, ignored output paths, and custom-code replay seals for reproducible Python and TypeScript SDK generation.
Confidence Score: 3/5
The production endpoint and bearer-credential routing need to be corrected before merging; the identifying employee metadata should also be replaced.
Generated clients can route nominal production requests and their configured bearer credentials to localhost rather than the deployed AgentEx service.
Files Needing Attention: stainless/stainless.yml and stainless/custom-code/python/2026-09-02T22-00-32-303Z-custom-code.json
Security Review
The production SDK environment is configured to use localhost while generated clients can attach an environment-provided bearer credential. A default production request can therefore fail locally or expose the credential to an unrelated process listening on port 5003. How this was verified: The production URL was traced from the new environments map to the generated client's bearer-auth configuration, and repository deployment documentation identifies localhost:5003 as development-only.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR Workspace[workspace.json] --> Spec[agentex/openapi.yaml] Workspace --> Config[stainless.yml] Config --> Python[Generated Python SDK] Config --> TypeScript[Generated TypeScript SDK] Seals[custom-code tracking seals] --> Python Seals --> TypeScript Python --> Localhost[production: localhost:5003] TypeScript --> LocalhostPrompt To Fix All With AI
Reviews (1): Last reviewed commit: "chore(stainless): commit stlc workspace ..." | Re-trigger Greptile
Context used: