gramatr 0.3.47 → 0.3.48
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/core/version.ts +1 -1
- package/gemini/install.ts +6 -1
- package/package.json +1 -1
package/core/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Auto-generated by version-sync.ts — do not edit */
|
|
2
|
-
export const VERSION = '0.3.
|
|
2
|
+
export const VERSION = '0.3.48';
|
package/gemini/install.ts
CHANGED
|
@@ -130,7 +130,12 @@ async function resolveApiKey(home: string): Promise<string | null> {
|
|
|
130
130
|
log(' Environment token is invalid.');
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
// 3. Prompt
|
|
133
|
+
// 3. Prompt (skip in non-interactive mode)
|
|
134
|
+
const nonInteractive = process.argv.includes('--yes') || process.argv.includes('-y') || !process.stdin.isTTY;
|
|
135
|
+
if (nonInteractive) {
|
|
136
|
+
log(' Non-interactive: no token found. Run gmtr-login after install.');
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
134
139
|
const prompted = await promptForApiKey();
|
|
135
140
|
if (prompted) {
|
|
136
141
|
log(' Testing token...');
|