gencow 0.1.203 → 0.1.205

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.
@@ -236,7 +236,11 @@ export function createAppCommand({
236
236
  }
237
237
  const { appId, appUrl } = createdApp;
238
238
 
239
- saveCredsImpl({ ...creds, currentApp: appId });
239
+ // Environment credentials are ephemeral automation inputs. Persisting them would
240
+ // overwrite a customer's interactive login in ~/.gencow/credentials.json.
241
+ if (creds.credentialSource !== "environment") {
242
+ saveCredsImpl({ ...creds, currentApp: appId });
243
+ }
240
244
 
241
245
  const cwd = cwdImpl();
242
246
  const projectSelection = resolveProjectSelection({
@@ -342,7 +346,7 @@ ${dashboardLine}
342
346
  }
343
347
 
344
348
  const currentCreds = loadCredsImpl();
345
- if (currentCreds?.currentApp === name) {
349
+ if (creds.credentialSource !== "environment" && currentCreds?.currentApp === name) {
346
350
  saveCredsImpl({ ...currentCreds, currentApp: undefined });
347
351
  }
348
352
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gencow",
3
- "version": "0.1.203",
3
+ "version": "0.1.205",
4
4
  "description": "Gencow — AI Backend Engine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,8 +33,8 @@
33
33
  "devDependencies": {
34
34
  "@types/node": "^25.9.5",
35
35
  "better-auth": "^1.6.23",
36
- "@gencow/react": "0.2.6",
37
36
  "@gencow/client": "0.2.6",
37
+ "@gencow/react": "0.2.6",
38
38
  "@gencow/core": "0.1.43"
39
39
  },
40
40
  "scripts": {