@enhance-eng/sdk 0.1.161 → 0.1.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -35,8 +35,11 @@ set +a
35
35
 
36
36
  Its values are `ENHANCE_ENVIRONMENT=local`, `ENHANCE_API_URL=http://localhost:3000` (or the
37
37
  worktree API port), and `ENHANCE_TOKEN` from that local instance. In CI, set the environment
38
- name and its token as job configuration and a secret respectively. Tokens are never inferred
39
- from another environment or read from CLI credential storage by the SDK.
38
+ name and its token as job configuration and a secret respectively. On your own machine you can
39
+ skip the token: when neither `token` nor `ENHANCE_TOKEN` is given, the SDK uses the sign-in the
40
+ Enhance CLI saved for the same environment (`enhance-dev auth login` for development, `enhance auth
41
+ login` for production). It never uses a token from another environment, and never for `local` or a
42
+ custom API URL.
40
43
 
41
44
  Integrations that already own destination and credential selection, such as the Enhance CLI,
42
45
  import `createEnhance` from `@enhance-eng/sdk/client` and pass both `apiUrl` and `token`.