claude-scionos 1.0.0 → 1.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,45 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.0.1] - 2025-11-29
9
+
10
+ ### Added
11
+ - Git Bash detection for Windows users
12
+ - Clear error message when Git Bash is missing on Windows
13
+ - Troubleshooting section for Git Bash in README.md
14
+ - Section de dépannage pour Git Bash dans README.fr.md
15
+ - Support for `CLAUDE_CODE_GIT_BASH_PATH` environment variable
16
+
17
+ ### Fixed
18
+ - Windows users no longer blocked after entering token due to missing Git Bash
19
+ - Better error handling for Windows environment requirements
20
+
21
+ ### Improved
22
+ - User experience for Windows beta testers
23
+ - Documentation clarity for Windows-specific requirements
24
+ - Error messages now provide actionable solutions
25
+
26
+ ## [1.0.0] - 2025-11-28
27
+
28
+ ### Added
29
+ - Initial release
30
+ - Ephemeral and secure token handling (memory-only storage)
31
+ - Support for SNIA environment (`https://hubs02225.snia.ch`)
32
+ - Bilingual documentation (English and French)
33
+ - Command-line interface with `--version` flag
34
+ - Secure token input with masking
35
+ - Automatic cleanup on process exit
36
+ - Zero persistence (no files written to disk)
37
+
38
+ ### Security
39
+ - Tokens stored only in memory
40
+ - No configuration files created
41
+ - Automatic credential cleanup on exit
42
+ - Environment variable isolation
43
+
44
+ [1.0.1]: https://github.com/ScioNos/claude-scionos/compare/v1.0.0...v1.0.1
45
+ [1.0.0]: https://github.com/ScioNos/claude-scionos/releases/tag/v1.0.0
package/README.fr.md CHANGED
@@ -181,6 +181,36 @@ claude --version
181
181
 
182
182
  ---
183
183
 
184
+ #### Windows : Git Bash introuvable
185
+
186
+ **Problème :** Sur Windows, Claude Code nécessite git-bash pour fonctionner. Si vous voyez une erreur après avoir saisi votre jeton, ou si `claude-scionos` se ferme avec un avertissement Git Bash, c'est le problème.
187
+
188
+ **Solution :**
189
+
190
+ 1. **Installer Git pour Windows** (inclut Git Bash) :
191
+
192
+ Télécharger depuis : [https://git-scm.com/downloads/win](https://git-scm.com/downloads/win)
193
+
194
+ 2. **Alternative :** Si Git Bash est déjà installé mais non détecté, définissez la variable d'environnement :
195
+
196
+ ```bash
197
+ # Invite de commandes Windows
198
+ set CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
199
+
200
+ # PowerShell Windows
201
+ $env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git\bin\bash.exe"
202
+ ```
203
+
204
+ 3. **Redémarrez votre terminal** et relancez :
205
+
206
+ ```bash
207
+ npx claude-scionos
208
+ ```
209
+
210
+ **Note :** Git Bash est automatiquement inclus lors de l'installation de Git pour Windows. Après l'installation, `claude-scionos` le détectera automatiquement.
211
+
212
+ ---
213
+
184
214
  #### Échec de l'authentification du jeton
185
215
 
186
216
  **Problème :** Jeton invalide ou expiré.
package/README.md CHANGED
@@ -181,6 +181,36 @@ claude --version
181
181
 
182
182
  ---
183
183
 
184
+ #### Windows: Git Bash not found
185
+
186
+ **Problem:** On Windows, Claude Code requires git-bash to run. If you see an error after entering your token, or if `claude-scionos` exits with a Git Bash warning, this is the issue.
187
+
188
+ **Solution:**
189
+
190
+ 1. **Install Git for Windows** (includes Git Bash):
191
+
192
+ Download from: [https://git-scm.com/downloads/win](https://git-scm.com/downloads/win)
193
+
194
+ 2. **Alternative:** If Git Bash is already installed but not detected, set the environment variable:
195
+
196
+ ```bash
197
+ # Windows Command Prompt
198
+ set CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
199
+
200
+ # Windows PowerShell
201
+ $env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git\bin\bash.exe"
202
+ ```
203
+
204
+ 3. **Restart your terminal** and run again:
205
+
206
+ ```bash
207
+ npx claude-scionos
208
+ ```
209
+
210
+ **Note:** Git Bash is automatically included when you install Git for Windows. After installation, `claude-scionos` will detect it automatically.
211
+
212
+ ---
213
+
184
214
  #### Token authentication fails
185
215
 
186
216
  **Problem:** Invalid or expired token.
package/index.js CHANGED
@@ -6,6 +6,7 @@ import spawn from 'cross-spawn';
6
6
  import which from 'which';
7
7
  import process from 'node:process';
8
8
  import { createRequire } from 'node:module';
9
+ import fs from 'node:fs';
9
10
 
10
11
  const require = createRequire(import.meta.url);
11
12
  const pkg = require('./package.json');
@@ -24,14 +25,35 @@ try {
24
25
  process.exit(1);
25
26
  }
26
27
 
27
- // 2. Intro
28
+ // 2. Check Git Bash on Windows
29
+ if (process.platform === 'win32') {
30
+ const possiblePaths = [
31
+ process.env.CLAUDE_CODE_GIT_BASH_PATH,
32
+ 'C:\\Program Files\\Git\\bin\\bash.exe',
33
+ 'C:\\Program Files (x86)\\Git\\bin\\bash.exe',
34
+ ].filter(Boolean);
35
+
36
+ const gitBashFound = possiblePaths.some(path => fs.existsSync(path));
37
+
38
+ if (!gitBashFound) {
39
+ console.log(chalk.red('\n❌ Git Bash is required on Windows\n'));
40
+ console.log(chalk.cyan('📥 Install Git for Windows:'));
41
+ console.log(chalk.white(' https://git-scm.com/downloads/win\n'));
42
+ console.log(chalk.cyan('⚙️ Or set the path manually:'));
43
+ console.log(chalk.white(' CLAUDE_CODE_GIT_BASH_PATH=C:\\Program Files\\Git\\bin\\bash.exe\n'));
44
+ console.log(chalk.yellow('💡 After installation, restart your terminal and try again.\n'));
45
+ process.exit(1);
46
+ }
47
+ }
48
+
49
+ // 3. Intro
28
50
  console.clear();
29
51
  console.log(chalk.cyan.bold("Claude Code (via ScioNos)"));
30
52
 
31
- // 3. Token info
53
+ // 4. Token info
32
54
  console.log(chalk.blueBright("To retrieve your token, visit: https://hubs02225.snia.ch/console/token"));
33
55
 
34
- // 4. Token input
56
+ // 5. Token input
35
57
  const token = await password({
36
58
  message: "Please enter your ANTHROPIC_AUTH_TOKEN:",
37
59
  validate: (input) => {
@@ -43,7 +65,7 @@ const token = await password({
43
65
  mask: '*'
44
66
  });
45
67
 
46
- // 5. Environment configuration
68
+ // 6. Environment configuration
47
69
  const env = {
48
70
  ...process.env,
49
71
  ANTHROPIC_BASE_URL: "https://hubs02225.snia.ch",
@@ -51,7 +73,7 @@ const env = {
51
73
  ANTHROPIC_API_KEY: "" // Force empty string
52
74
  };
53
75
 
54
- // 6. Launch Claude Code
76
+ // 7. Launch Claude Code
55
77
  const child = spawn('claude', [], {
56
78
  stdio: 'inherit',
57
79
  env: env
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-scionos",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Ephemeral and secure runner for Claude Code CLI in SNIA environment",
5
5
  "main": "index.js",
6
6
  "bin": {