gitarsenal-cli 1.9.13 → 1.9.15
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 +1 -1
- package/package.json +1 -1
- package/python/requirements.txt +9 -8
- package/scripts/postinstall.js +26 -9
package/.venv_status.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"created":"2025-08-06T07:
|
|
1
|
+
{"created":"2025-08-06T07:50:57.403Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
|
package/package.json
CHANGED
package/python/requirements.txt
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
modal
|
|
2
|
-
requests
|
|
3
|
-
pathlib
|
|
4
|
-
python-dotenv
|
|
5
|
-
flask
|
|
6
|
-
flask-cors
|
|
7
|
-
pexpect
|
|
8
|
-
anthropic
|
|
1
|
+
modal
|
|
2
|
+
requests
|
|
3
|
+
pathlib
|
|
4
|
+
python-dotenv
|
|
5
|
+
flask
|
|
6
|
+
flask-cors
|
|
7
|
+
pexpect
|
|
8
|
+
anthropic
|
|
9
|
+
gitingest
|
package/scripts/postinstall.js
CHANGED
|
@@ -90,7 +90,7 @@ async function checkAndInstallUv() {
|
|
|
90
90
|
|
|
91
91
|
// Function to create and activate virtual environment using uv
|
|
92
92
|
async function createVirtualEnvironment() {
|
|
93
|
-
const packages = ['modal', 'gitingest', 'requests'];
|
|
93
|
+
const packages = ['modal', 'gitingest', 'requests', 'anthropic'];
|
|
94
94
|
const packageDir = path.join(__dirname, '..');
|
|
95
95
|
|
|
96
96
|
console.log(chalk.yellow(`📦 Creating virtual environment with uv and installing packages: ${packages.join(', ')}`));
|
|
@@ -138,18 +138,30 @@ async function createVirtualEnvironment() {
|
|
|
138
138
|
|
|
139
139
|
console.log(chalk.gray(`🔄 Installing packages in virtual environment with uv...`));
|
|
140
140
|
|
|
141
|
-
// Install packages using uv pip
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
// Install packages using uv pip from requirements.txt
|
|
142
|
+
const requirementsPath = path.join(packageDir, 'python', 'requirements.txt');
|
|
143
|
+
if (await fs.pathExists(requirementsPath)) {
|
|
144
|
+
console.log(chalk.gray(`📦 Installing packages from requirements.txt...`));
|
|
145
|
+
await execAsync(`uv pip install -r ${requirementsPath}`, {
|
|
146
|
+
cwd: packageDir,
|
|
147
|
+
env: { ...process.env, PYTHONIOENCODING: 'utf-8' },
|
|
148
|
+
stdio: 'inherit'
|
|
149
|
+
});
|
|
150
|
+
} else {
|
|
151
|
+
console.log(chalk.gray(`📦 Installing packages: ${packages.join(', ')}`));
|
|
152
|
+
await execAsync(`uv pip install ${packages.join(' ')}`, {
|
|
153
|
+
cwd: packageDir,
|
|
154
|
+
env: { ...process.env, PYTHONIOENCODING: 'utf-8' },
|
|
155
|
+
stdio: 'inherit'
|
|
156
|
+
});
|
|
157
|
+
}
|
|
147
158
|
|
|
148
159
|
console.log(chalk.green('✅ Python packages installed successfully in virtual environment!'));
|
|
149
160
|
|
|
150
161
|
// Verify packages are installed
|
|
151
162
|
const pythonPath = path.join(venvPath, 'bin', 'python');
|
|
152
|
-
|
|
163
|
+
const packagesToVerify = [...packages, 'anthropic']; // Ensure anthropic is checked
|
|
164
|
+
for (const pkg of packagesToVerify) {
|
|
153
165
|
try {
|
|
154
166
|
await execAsync(`${pythonPath} -c "import ${pkg}; print('${pkg} imported successfully')"`);
|
|
155
167
|
console.log(chalk.green(`✅ ${pkg} verified`));
|
|
@@ -196,7 +208,7 @@ exec "$@"`;
|
|
|
196
208
|
console.log(chalk.yellow('💡 Please run manually:'));
|
|
197
209
|
console.log(chalk.yellow(' cd /root/.nvm/versions/node/v22.18.0/lib/node_modules/gitarsenal-cli'));
|
|
198
210
|
console.log(chalk.yellow(' uv venv'));
|
|
199
|
-
console.log(chalk.yellow(' uv pip install
|
|
211
|
+
console.log(chalk.yellow(' uv pip install -r python/requirements.txt'));
|
|
200
212
|
return false;
|
|
201
213
|
}
|
|
202
214
|
}
|
|
@@ -382,6 +394,7 @@ if __name__ == "__main__":
|
|
|
382
394
|
- Modal
|
|
383
395
|
- GitIngest
|
|
384
396
|
- Requests
|
|
397
|
+
- Anthropic (for Claude fallback)
|
|
385
398
|
|
|
386
399
|
💡 Next steps:
|
|
387
400
|
• Run: gitarsenal --help
|
|
@@ -393,6 +406,10 @@ if __name__ == "__main__":
|
|
|
393
406
|
• Windows: .venv\\Scripts\\activate.bat
|
|
394
407
|
• Or use: ./activate_venv.sh (Unix/macOS) or activate_venv.bat (Windows)
|
|
395
408
|
|
|
409
|
+
💡 Claude Fallback:
|
|
410
|
+
• Set ANTHROPIC_API_KEY for Claude fallback functionality
|
|
411
|
+
• Run: python test_claude_fallback.py to test
|
|
412
|
+
|
|
396
413
|
Having issues? Run: gitarsenal --debug
|
|
397
414
|
`));
|
|
398
415
|
|