@rotorsoft/gent 1.25.0 → 1.25.1
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/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -390,8 +390,12 @@ async function invokeAIInteractive(prompt, config, providerOverride) {
|
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
case "gemini": {
|
|
393
|
+
const args = prompt.trim() ? ["chat", prompt] : ["chat"];
|
|
393
394
|
return {
|
|
394
|
-
result: execa2("gemini",
|
|
395
|
+
result: execa2("gemini", args, {
|
|
396
|
+
stdio: "inherit",
|
|
397
|
+
env: buildGeminiInteractiveEnv()
|
|
398
|
+
}),
|
|
395
399
|
provider
|
|
396
400
|
};
|
|
397
401
|
}
|
|
@@ -437,6 +441,17 @@ function isRateLimitError(error, provider) {
|
|
|
437
441
|
}
|
|
438
442
|
return false;
|
|
439
443
|
}
|
|
444
|
+
function buildGeminiInteractiveEnv() {
|
|
445
|
+
const env = { ...process.env };
|
|
446
|
+
delete env.CI;
|
|
447
|
+
delete env.CONTINUOUS_INTEGRATION;
|
|
448
|
+
for (const key of Object.keys(env)) {
|
|
449
|
+
if (key.startsWith("CI_")) {
|
|
450
|
+
delete env[key];
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return env;
|
|
454
|
+
}
|
|
440
455
|
async function invokeClaudeInternal(options) {
|
|
441
456
|
const args = ["--print"];
|
|
442
457
|
if (options.permissionMode) {
|
|
@@ -2218,7 +2233,7 @@ import { homedir } from "os";
|
|
|
2218
2233
|
// package.json
|
|
2219
2234
|
var package_default = {
|
|
2220
2235
|
name: "@rotorsoft/gent",
|
|
2221
|
-
version: "1.25.
|
|
2236
|
+
version: "1.25.1",
|
|
2222
2237
|
description: "AI-powered GitHub workflow CLI - leverage AI (Claude, Gemini, or Codex) to create tickets, implement features, and manage PRs",
|
|
2223
2238
|
keywords: [
|
|
2224
2239
|
"cli",
|