gitarsenal-cli 1.9.30 → 1.9.31
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/.venv_status.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"created":"2025-08-
|
|
1
|
+
{"created":"2025-08-10T15:27:06.463Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
|
package/bin/gitarsenal.js
CHANGED
|
@@ -129,6 +129,10 @@ async function sendUserData(userId, userName) {
|
|
|
129
129
|
console.log(chalk.yellow('⚠️ Could not read config file, using default URL'));
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
+
// Env var override has highest priority
|
|
133
|
+
if (process.env.GITARSENAL_WEBHOOK_URL) {
|
|
134
|
+
webhookUrl = process.env.GITARSENAL_WEBHOOK_URL;
|
|
135
|
+
}
|
|
132
136
|
|
|
133
137
|
console.log(chalk.gray(`📡 Sending to: ${webhookUrl}`));
|
|
134
138
|
console.log(chalk.gray(`📦 Data: ${data}`));
|
|
@@ -145,6 +149,9 @@ async function sendUserData(userId, userName) {
|
|
|
145
149
|
'User-Agent': 'GitArsenal-CLI/1.0'
|
|
146
150
|
}
|
|
147
151
|
};
|
|
152
|
+
if (process.env.GITARSENAL_WEBHOOK_TOKEN) {
|
|
153
|
+
options.headers['Authorization'] = `Bearer ${process.env.GITARSENAL_WEBHOOK_TOKEN}`;
|
|
154
|
+
}
|
|
148
155
|
|
|
149
156
|
return new Promise((resolve, reject) => {
|
|
150
157
|
const client = urlObj.protocol === 'https:' ? https : http;
|
|
@@ -299,7 +306,11 @@ keysCmd
|
|
|
299
306
|
.description('Add an API key')
|
|
300
307
|
.option('-s, --service <service>', 'Service name (any service supported)')
|
|
301
308
|
.option('-k, --key <key>', 'API key (if not provided, will prompt)')
|
|
302
|
-
|
|
309
|
+
.action(async (options) => {
|
|
310
|
+
// Set webhook override if provided via env
|
|
311
|
+
if (process.env.GITARSENAL_WEBHOOK_URL) {
|
|
312
|
+
console.log(chalk.gray(`🔗 Using webhook: ${process.env.GITARSENAL_WEBHOOK_URL}`));
|
|
313
|
+
}
|
|
303
314
|
await handleKeysAdd(options);
|
|
304
315
|
});
|
|
305
316
|
|
|
@@ -347,7 +358,7 @@ program.parse(process.argv);
|
|
|
347
358
|
|
|
348
359
|
async function runContainerCommand(options) {
|
|
349
360
|
try {
|
|
350
|
-
console.log(chalk.blue('🔍 DEBUG: runContainerCommand called with options:'), options);
|
|
361
|
+
// console.log(chalk.blue('🔍 DEBUG: runContainerCommand called with options:'), options);
|
|
351
362
|
// If show-examples flag is set, just show examples and exit
|
|
352
363
|
if (options.showExamples) {
|
|
353
364
|
await runContainer({
|
|
@@ -362,8 +373,8 @@ async function runContainerCommand(options) {
|
|
|
362
373
|
|
|
363
374
|
// Register user on dashboard immediately after collecting credentials
|
|
364
375
|
console.log(chalk.blue('\n📝 Registering user on GitArsenal dashboard...'));
|
|
365
|
-
//
|
|
366
|
-
|
|
376
|
+
// Send user data immediately so the dashboard records users
|
|
377
|
+
await sendUserData(userId, userName);
|
|
367
378
|
|
|
368
379
|
// Check for required dependencies
|
|
369
380
|
const spinner = ora('Checking dependencies...').start();
|
package/package.json
CHANGED
package/python/llm_debugging.py
CHANGED
|
@@ -347,7 +347,7 @@ def make_openai_request(api_key, prompt, retries=2):
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
payload = {
|
|
350
|
-
"model":
|
|
350
|
+
"model": "gpt-5-mini",
|
|
351
351
|
"messages": [
|
|
352
352
|
{"role": "system", "content": "You are a debugging assistant. Provide only the terminal command to fix the issue."},
|
|
353
353
|
{"role": "user", "content": prompt}
|
|
@@ -1827,7 +1827,7 @@ Return only the JSON array, no other text.
|
|
|
1827
1827
|
client = openai.OpenAI(api_key=api_key)
|
|
1828
1828
|
|
|
1829
1829
|
response = client.chat.completions.create(
|
|
1830
|
-
model="gpt-
|
|
1830
|
+
model="gpt-5-mini",
|
|
1831
1831
|
messages=[
|
|
1832
1832
|
{"role": "system", "content": "You are a command preprocessing assistant that modifies setup commands to use available credentials and make them non-interactive."},
|
|
1833
1833
|
{"role": "user", "content": prompt}
|