This commit is contained in:
2026-09-11 13:51:39 +08:00
parent 54b2c16a76
commit 1d0fbea069
3 changed files with 26 additions and 29 deletions
+12 -12
View File
@@ -7,19 +7,19 @@ The AI coding agent built for the terminal.
**Unix (Linux/macOS):** **Unix (Linux/macOS):**
```bash ```bash
curl -fsSL https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install | bash curl -fsSL https://eightarms.net/Octopus/octopus-release/raw/branch/main/install | bash
``` ```
**Windows (PowerShell):** **Windows (PowerShell):**
```powershell ```powershell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
irm https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install.ps1 | iex irm https://eightarms.net/Octopus/octopus-release/raw/branch/main/install.ps1 | iex
``` ```
### Manual install ### Manual install
If the one-liner fails with a connection error, the direct connection to `eightarms.net` is likely being filtered on your network. Download the archive for your platform from the [releases page](https://eightarms.net/fourbroad/octopus-release/releases/latest) and install it manually instead. If the one-liner fails with a connection error, the direct connection to `eightarms.net` is likely being filtered on your network. Download the archive for your platform from the [releases page](https://eightarms.net/Octopus/octopus-release/releases/latest) and install it manually instead.
**Unix (Linux/macOS):** **Unix (Linux/macOS):**
@@ -51,16 +51,16 @@ Open a **new** terminal and run `octopus`.
## Documentation ## Documentation
Visit the [documentation](https://eightarms.net/fourbroad/octopus/wiki) for usage guides and API reference. Visit the [documentation](https://eightarms.net/Octopus/octopus/wiki) for usage guides and API reference.
## Development
The source code and issue tracker are available at the [private development repository](https://eightarms.net/fourbroad/octopus).
## License
MIT License — see the source repository for details.
## Workflow ## Workflow
Curious how Octopus organizes agent work? Read about the **ticket-driven workflow system** (in Chinese): [docs/workflow.zh.md](docs/workflow.zh.md) Curious how Octopus organizes agent work? Read about the **ticket-driven workflow system** (in Chinese): [docs/workflow.zh.md](docs/workflow.zh.md)
## Development
The source code and issue tracker are available at the [private development repository](https://eightarms.net/Octopus/octopus).
## License
MIT License — see the source repository for details.
+9 -9
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Public release repository: # Public release repository:
# https://eightarms.net/fourbroad/octopus-release # https://eightarms.net/Octopus/octopus-release
set -euo pipefail set -euo pipefail
APP=octopus APP=octopus
@@ -22,8 +22,8 @@ Options:
--no-modify-path Don't modify shell config files (.zshrc, .bashrc, etc.) --no-modify-path Don't modify shell config files (.zshrc, .bashrc, etc.)
Examples: Examples:
curl -fsSL https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install | bash curl -fsSL https://eightarms.net/install | bash
curl -fsSL https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install | bash -s -- --version 1.0.180 curl -fsSL https://eightarms.net/install | bash -s -- --version 1.0.180
./install --binary /path/to/octopus ./install --binary /path/to/octopus
EOF EOF
} }
@@ -183,24 +183,24 @@ else
fi fi
if [ -z "$requested_version" ]; then if [ -z "$requested_version" ]; then
specific_version=$(curl -s "${GITEA_API_URL:-https://eightarms.net/api/v1}/repos/fourbroad/octopus-release/releases?limit=1" | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p') specific_version=$(curl -s "${GITEA_API_URL:-https://eightarms.net/api/v1}/repos/Octopus/octopus-release/releases?limit=1" | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p')
if [[ $? -ne 0 || -z "$specific_version" ]]; then if [[ $? -ne 0 || -z "$specific_version" ]]; then
echo -e "${RED}Failed to fetch version information${NC}" echo -e "${RED}Failed to fetch version information${NC}"
exit 1 exit 1
fi fi
url="${OCTOPUS_DOWNLOAD_BASE:-https://eightarms.net}/fourbroad/octopus-release/releases/download/v${specific_version}/$filename" url="${OCTOPUS_DOWNLOAD_BASE:-https://eightarms.net}/Octopus/octopus-release/releases/download/v${specific_version}/$filename"
else else
# Strip leading 'v' if present # Strip leading 'v' if present
requested_version="${requested_version#v}" requested_version="${requested_version#v}"
url="${OCTOPUS_DOWNLOAD_BASE:-https://eightarms.net}/fourbroad/octopus-release/releases/download/v${requested_version}/$filename" url="${OCTOPUS_DOWNLOAD_BASE:-https://eightarms.net}/Octopus/octopus-release/releases/download/v${requested_version}/$filename"
specific_version=$requested_version specific_version=$requested_version
# Verify the release exists before downloading # Verify the release exists before downloading
http_status=$(curl -sI -o /dev/null -w "%{http_code}" "${GITEA_URL:-https://eightarms.net}/fourbroad/octopus-release/releases/tag/v${requested_version}") http_status=$(curl -sI -o /dev/null -w "%{http_code}" "${GITEA_URL:-https://eightarms.net}/Octopus/octopus-release/releases/tag/v${requested_version}")
if [ "$http_status" = "404" ]; then if [ "$http_status" = "404" ]; then
echo -e "${RED}Error: Release v${requested_version} not found${NC}" echo -e "${RED}Error: Release v${requested_version} not found${NC}"
echo -e "${MUTED}Available releases: ${GITEA_URL:-https://eightarms.net}/fourbroad/octopus-release/releases${NC}" echo -e "${MUTED}Available releases: ${GITEA_URL:-https://eightarms.net}/Octopus/octopus-release/releases${NC}"
exit 1 exit 1
fi fi
fi fi
@@ -456,6 +456,6 @@ echo -e ""
echo -e "cd <project> ${MUTED}# Open directory${NC}" echo -e "cd <project> ${MUTED}# Open directory${NC}"
echo -e "octopus ${MUTED}# Run command${NC}" echo -e "octopus ${MUTED}# Run command${NC}"
echo -e "" echo -e ""
echo -e "${MUTED}For more information visit ${NC}https://eightarms.net/fourbroad/octopus-release" echo -e "${MUTED}For more information visit ${NC}https://eightarms.net/docs"
echo -e "" echo -e ""
echo -e "" echo -e ""
+5 -8
View File
@@ -1,5 +1,5 @@
#Requires -Version 5.1 #Requires -Version 5.1
# Public release repository: https://eightarms.net/fourbroad/octopus-release # Public release repository: https://eightarms.net/Octopus/octopus-release
<# <#
.SYNOPSIS .SYNOPSIS
Octopus installer for Windows. Octopus installer for Windows.
@@ -14,12 +14,10 @@
Do not add the install directory to the user PATH. Do not add the install directory to the user PATH.
.EXAMPLE .EXAMPLE
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 irm https://eightarms.net/Octopus/octopus-release/raw/branch/dev/install.ps1 | iex
irm https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install.ps1 | iex
.EXAMPLE .EXAMPLE
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 irm https://eightarms.net/Octopus/octopus-release/raw/branch/dev/install.ps1 | iex; Install-Octopus -Version 0.1.3
irm https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install.ps1 | iex; Install-Octopus -Version 0.1.3
#> #>
[CmdletBinding()] [CmdletBinding()]
param( param(
@@ -29,10 +27,9 @@ param(
Set-StrictMode -Version Latest Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$APP = "octopus" $APP = "octopus"
$REPO = "fourbroad/octopus-release" $REPO = "Octopus/octopus-release"
$baseUrl = if ($env:OCTOPUS_DOWNLOAD_BASE) { $env:OCTOPUS_DOWNLOAD_BASE } else { "https://eightarms.net" } $baseUrl = if ($env:OCTOPUS_DOWNLOAD_BASE) { $env:OCTOPUS_DOWNLOAD_BASE } else { "https://eightarms.net" }
$INSTALL_DIR = Join-Path $env:USERPROFILE ".octopus\bin" $INSTALL_DIR = Join-Path $env:USERPROFILE ".octopus\bin"
@@ -197,7 +194,7 @@ function Install-Octopus {
Write-Host " octopus " -NoNewline; Write-Host "# Run command" -ForegroundColor DarkGray Write-Host " octopus " -NoNewline; Write-Host "# Run command" -ForegroundColor DarkGray
Write-Host "" Write-Host ""
Write-Host "For more information visit " -NoNewline -ForegroundColor DarkGray Write-Host "For more information visit " -NoNewline -ForegroundColor DarkGray
Write-Host "https://eightarms.net/fourbroad/octopus-release" Write-Host "https://eightarms.net/docs"
Write-Host "" Write-Host ""
} }