freecode-sh 0.1.0-alpha.26 → 0.1.0-alpha.28

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.
Files changed (3) hide show
  1. package/README.md +8 -7
  2. package/install.ps1 +16 -1
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -1,14 +1,15 @@
1
- # Free Code
1
+ <p align="center"><img src="https://freecode.sh/icon.svg" width="128" alt="freecode"></p>
2
2
 
3
- Free Code is a free coding agent for your terminal. Ask it to build, fix,
4
- explain, and test code in your own projects.
3
+ # freecode
4
+
5
+ the free coding agent
5
6
 
6
7
  This npm package is a small macOS and Windows bootstrapper. On first launch it
7
- installs the matching native Free Code release, verifies its publisher signature
8
+ installs the matching native freecode release, verifies its publisher signature
8
9
  and checksum, and then runs the native executable. Application code and prompts
9
10
  are not shipped in the npm package.
10
11
 
11
- Both `freecode` and `freecode-sh` launch the same Free Code CLI.
12
+ Both `freecode` and `freecode-sh` launch the same freecode CLI.
12
13
 
13
14
  The signed native `alpha` channel is the canonical current release. npm
14
15
  `latest` mirrors that version; npm `alpha` is intentionally not used.
@@ -25,7 +26,7 @@ freecode
25
26
  For a reproducible clean install of this immutable release:
26
27
 
27
28
  ```bash
28
- npm install -g freecode-sh@0.1.0-alpha.26
29
+ npm install -g freecode-sh@0.1.0-alpha.28
29
30
  freecode --version
30
31
  ```
31
32
 
@@ -35,4 +36,4 @@ npm uninstall -g freecode-sh
35
36
  rm -rf ~/.local/share/freecode # macOS: optionally remove downloaded native versions
36
37
  ```
37
38
 
38
- Free Code supports Apple Silicon and Intel Macs, plus Windows x64.
39
+ freecode supports Apple Silicon and Intel Macs, plus Windows x64.
package/install.ps1 CHANGED
@@ -395,6 +395,21 @@ if not defined FREECODE_VERSION (
395
395
  Write-TextAtomically $ShimPath ($shim -replace "`n", "`r`n")
396
396
  }
397
397
 
398
+ function Move-StagedVersion([string]$Source, [string]$Destination) {
399
+ # Windows scanners can briefly hold a newly extracted executable open. Retry
400
+ # only the rename; never copy a partial version or relax payload verification.
401
+ for ($attempt = 0; $attempt -lt 21; $attempt++) {
402
+ try {
403
+ [IO.Directory]::Move($Source, $Destination)
404
+ return
405
+ } catch [IO.IOException], [UnauthorizedAccessException] {
406
+ if ($attempt -eq 20 -or (Test-Path -LiteralPath $Destination)) { throw }
407
+ if ($attempt -eq 0) { Write-Host 'Waiting for Windows to release the installation files...' }
408
+ Start-Sleep -Milliseconds 250
409
+ }
410
+ }
411
+ }
412
+
398
413
  function Set-UserPath([bool]$Add) {
399
414
  $userPath = [Environment]::GetEnvironmentVariable('Path', 'User')
400
415
  $entries = @($userPath -split ';' | Where-Object { $_ })
@@ -597,7 +612,7 @@ try {
597
612
  version = $Version
598
613
  asset = $asset
599
614
  } | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath (Join-Path $StageDir 'release-metadata.json') -Encoding UTF8
600
- Move-Item -LiteralPath $StageDir -Destination $versionRoot
615
+ Move-StagedVersion $StageDir $versionRoot
601
616
  $StageDir = $null
602
617
  } else {
603
618
  Assert-CompleteInstall $versionRoot
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "freecode-sh",
3
- "version": "0.1.0-alpha.26",
3
+ "version": "0.1.0-alpha.28",
4
4
  "description": "A free coding agent for your terminal.",
5
5
  "license": "UNLICENSED",
6
- "author": "Free Code",
6
+ "author": "freecode",
7
7
  "homepage": "https://freecode.sh",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/SchmitzAndrew/freecode.git"
10
+ "url": "git+https://github.com/freecode-sh/freecode.git"
11
11
  },
12
12
  "bugs": {
13
- "url": "https://github.com/SchmitzAndrew/freecode/issues"
13
+ "url": "https://github.com/freecode-sh/freecode/issues"
14
14
  },
15
15
  "keywords": [
16
16
  "ai",
@@ -32,7 +32,7 @@
32
32
  "install.ps1"
33
33
  ],
34
34
  "engines": {
35
- "node": ">=20.9.0"
35
+ "node": ">=18.18.0"
36
36
  },
37
37
  "os": [
38
38
  "darwin",
@@ -47,6 +47,6 @@
47
47
  },
48
48
  "freecodeRelease": {
49
49
  "channel": "alpha",
50
- "nativeVersion": "0.1.0-alpha.26"
50
+ "nativeVersion": "0.1.0-alpha.28"
51
51
  }
52
52
  }