Summary
The TypeScript ServerManager exposes a public getAccessToken() method that reads the accessToken field from the sidecar lock file. The Python ServerManager has no equivalent method.
TypeScript (sdks/typescript/pmxt/server-manager.ts, lines 96–100):
/**
* Get the access token from the lock file.
*/
getAccessToken(): string | undefined {
const info = this.getServerInfo();
return info?.accessToken;
}
Python (sdks/python/pmxt/server_manager.py):
get_server_info() is public and returns the raw lock-file dict (which can include accessToken), but there is no get_access_token() convenience method.
Impact
Code that migrates between SDKs cannot use server_manager.get_access_token() in Python; callers must do server_manager.get_server_info().get('accessToken') instead, which is undocumented and relies on internal lock-file structure.
Expected behaviour
Both SDKs should expose an equivalent get_access_token() / getAccessToken() method.
Files
| SDK |
File |
Lines |
| TypeScript |
sdks/typescript/pmxt/server-manager.ts |
96–100 |
| Python |
sdks/python/pmxt/server_manager.py |
(absent) |
Summary
The TypeScript
ServerManagerexposes a publicgetAccessToken()method that reads theaccessTokenfield from the sidecar lock file. The PythonServerManagerhas no equivalent method.TypeScript (
sdks/typescript/pmxt/server-manager.ts, lines 96–100):Python (
sdks/python/pmxt/server_manager.py):get_server_info()is public and returns the raw lock-file dict (which can includeaccessToken), but there is noget_access_token()convenience method.Impact
Code that migrates between SDKs cannot use
server_manager.get_access_token()in Python; callers must doserver_manager.get_server_info().get('accessToken')instead, which is undocumented and relies on internal lock-file structure.Expected behaviour
Both SDKs should expose an equivalent
get_access_token()/getAccessToken()method.Files
sdks/typescript/pmxt/server-manager.tssdks/python/pmxt/server_manager.py