@clawpump/claw-agent 0.1.14 → 0.1.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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "hermes",
|
|
3
3
|
"productName": "Claw Agent",
|
|
4
4
|
"private": true,
|
|
5
|
-
"version": "0.15.
|
|
5
|
+
"version": "0.15.5",
|
|
6
6
|
"description": "Claw Agent by ClawPump — native desktop app for Solana agents, built on Hermes Agent by Nous Research.",
|
|
7
7
|
"author": "ClawPump (built on Hermes by Nous Research)",
|
|
8
8
|
"type": "module",
|
package/agent/hermes_cli/main.py
CHANGED
|
@@ -5953,7 +5953,7 @@ def _update_via_zip(args):
|
|
|
5953
5953
|
)
|
|
5954
5954
|
sys.exit(1)
|
|
5955
5955
|
zip_url = (
|
|
5956
|
-
f"https://github.com/
|
|
5956
|
+
f"https://github.com/Clawpump/claw-agent/archive/refs/heads/{branch}.zip"
|
|
5957
5957
|
)
|
|
5958
5958
|
|
|
5959
5959
|
print("→ Downloading latest version...")
|
|
@@ -8624,7 +8624,7 @@ def _cmd_update_impl(args, gateway_mode: bool):
|
|
|
8624
8624
|
return
|
|
8625
8625
|
print("✗ Not a git repository. Please reinstall:")
|
|
8626
8626
|
print(
|
|
8627
|
-
"
|
|
8627
|
+
" npx @clawpump/claw-agent"
|
|
8628
8628
|
)
|
|
8629
8629
|
sys.exit(1)
|
|
8630
8630
|
|
|
@@ -5,10 +5,10 @@ REM ============================================================================
|
|
|
5
5
|
REM This batch file launches the PowerShell installer for users running CMD.
|
|
6
6
|
REM
|
|
7
7
|
REM Usage:
|
|
8
|
-
REM curl -fsSL https://raw.githubusercontent.com/
|
|
8
|
+
REM curl -fsSL https://raw.githubusercontent.com/Clawpump/claw-agent/main/scripts/install.cmd -o install.cmd && install.cmd && del install.cmd
|
|
9
9
|
REM
|
|
10
10
|
REM Or if you're already in PowerShell, use the direct command instead:
|
|
11
|
-
REM iex (irm https://
|
|
11
|
+
REM iex (irm https://raw.githubusercontent.com/Clawpump/claw-agent/main/scripts/install.ps1)
|
|
12
12
|
REM ============================================================================
|
|
13
13
|
|
|
14
14
|
echo.
|
|
@@ -16,12 +16,12 @@ echo Hermes Agent Installer
|
|
|
16
16
|
echo Launching PowerShell installer...
|
|
17
17
|
echo.
|
|
18
18
|
|
|
19
|
-
powershell -ExecutionPolicy ByPass -NoProfile -Command "iex (irm https://
|
|
19
|
+
powershell -ExecutionPolicy ByPass -NoProfile -Command "iex (irm https://raw.githubusercontent.com/Clawpump/claw-agent/main/scripts/install.ps1)"
|
|
20
20
|
|
|
21
21
|
if %ERRORLEVEL% NEQ 0 (
|
|
22
22
|
echo.
|
|
23
23
|
echo Installation failed. Please try running PowerShell directly:
|
|
24
|
-
echo powershell -ExecutionPolicy ByPass -c "iex (irm https://
|
|
24
|
+
echo powershell -ExecutionPolicy ByPass -c "iex (irm https://raw.githubusercontent.com/Clawpump/claw-agent/main/scripts/install.ps1)"
|
|
25
25
|
echo.
|
|
26
26
|
pause
|
|
27
27
|
exit /b 1
|
|
@@ -1208,6 +1208,19 @@ function Install-Repository {
|
|
|
1208
1208
|
# users hit on update. Pin autocrlf=false so the dirt is never
|
|
1209
1209
|
# created in the first place.
|
|
1210
1210
|
git -c windows.appendAtomically=false config core.autocrlf false 2>$null
|
|
1211
|
+
# Re-point a pre-existing checkout at the ClawPump fork. Anyone
|
|
1212
|
+
# who installed upstream Hermes has origin=NousResearch here;
|
|
1213
|
+
# without this the update pulls upstream (none of the ClawPump
|
|
1214
|
+
# features) into the install. Force origin to the fork; the
|
|
1215
|
+
# diverged history means the update below hard-resets onto it.
|
|
1216
|
+
$repoRepointed = $false
|
|
1217
|
+
$currentOrigin = (git -c windows.appendAtomically=false remote get-url origin 2>$null) -join ""
|
|
1218
|
+
if ($currentOrigin -notmatch "(?i)clawpump/claw-agent") {
|
|
1219
|
+
Write-Warn "Re-pointing origin to the ClawPump fork (was: $currentOrigin)."
|
|
1220
|
+
git -c windows.appendAtomically=false remote set-url origin $RepoUrlHttps 2>$null
|
|
1221
|
+
if ($LASTEXITCODE -ne 0) { git -c windows.appendAtomically=false remote add origin $RepoUrlHttps 2>$null }
|
|
1222
|
+
$repoRepointed = $true
|
|
1223
|
+
}
|
|
1211
1224
|
# Preserve any real local changes before the checkout instead of
|
|
1212
1225
|
# discarding them with `reset --hard HEAD`. The old hard reset
|
|
1213
1226
|
# silently destroyed agent-edited source on managed clones (the
|
|
@@ -1254,8 +1267,16 @@ function Install-Repository {
|
|
|
1254
1267
|
} else {
|
|
1255
1268
|
git -c windows.appendAtomically=false checkout $Branch
|
|
1256
1269
|
if ($LASTEXITCODE -ne 0) { throw "git checkout $Branch failed (exit $LASTEXITCODE)" }
|
|
1257
|
-
|
|
1258
|
-
|
|
1270
|
+
if ($repoRepointed) {
|
|
1271
|
+
# Upstream -> fork is a diverged history; fast-forward is
|
|
1272
|
+
# impossible. Hard-reset the branch onto the fork.
|
|
1273
|
+
Write-Info "Resetting $Branch to the ClawPump fork (origin/$Branch)..."
|
|
1274
|
+
git -c windows.appendAtomically=false reset --hard "origin/$Branch"
|
|
1275
|
+
if ($LASTEXITCODE -ne 0) { throw "git reset --hard origin/$Branch failed (exit $LASTEXITCODE)" }
|
|
1276
|
+
} else {
|
|
1277
|
+
git -c windows.appendAtomically=false pull --ff-only origin $Branch
|
|
1278
|
+
if ($LASTEXITCODE -ne 0) { throw "git pull failed (exit $LASTEXITCODE)" }
|
|
1279
|
+
}
|
|
1259
1280
|
}
|
|
1260
1281
|
|
|
1261
1282
|
if ($autostashRef) {
|
|
@@ -1266,7 +1287,9 @@ function Install-Repository {
|
|
|
1266
1287
|
# bootstrap run the installer without a usable console -- in
|
|
1267
1288
|
# those cases Read-Host would hang or return empty, so we
|
|
1268
1289
|
# skip the prompt and just restore (the safe default).
|
|
1269
|
-
|
|
1290
|
+
# Don't replay upstream-Hermes local edits onto the fork —
|
|
1291
|
+
# they target different code and would only conflict.
|
|
1292
|
+
$restoreNow = -not $repoRepointed
|
|
1270
1293
|
$hasConsole = $false
|
|
1271
1294
|
try {
|
|
1272
1295
|
$hasConsole = (
|