@clawpump/claw-agent 0.1.11 → 0.1.13
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.
|
@@ -109,7 +109,7 @@ function downloadInstallScript(commit, destPath) {
|
|
|
109
109
|
// is immutable (unlike a branch ref), so we don't need integrity
|
|
110
110
|
// verification beyond "did the file we wrote pass a syntax probe."
|
|
111
111
|
const scriptName = installScriptName()
|
|
112
|
-
const url = `https://raw.githubusercontent.com/
|
|
112
|
+
const url = `https://raw.githubusercontent.com/Clawpump/claw-agent/${commit}/scripts/${scriptName}`
|
|
113
113
|
return new Promise((resolve, reject) => {
|
|
114
114
|
fs.mkdirSync(path.dirname(destPath), { recursive: true })
|
|
115
115
|
const tmpPath = destPath + '.tmp'
|
|
@@ -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.3",
|
|
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/scripts/install.sh
CHANGED
|
@@ -1135,6 +1135,24 @@ clone_repo() {
|
|
|
1135
1135
|
log_info "Existing installation found, updating..."
|
|
1136
1136
|
cd "$INSTALL_DIR"
|
|
1137
1137
|
|
|
1138
|
+
# Re-point a pre-existing checkout at the ClawPump fork. Anyone who
|
|
1139
|
+
# installed upstream Hermes has origin=NousResearch here; without
|
|
1140
|
+
# this, every update pulls upstream (none of the ClawPump features —
|
|
1141
|
+
# x402, Pod, the ClawPump MCP) into the install. Force origin to our
|
|
1142
|
+
# fork so the fetch below lands the right source.
|
|
1143
|
+
local repo_repointed=""
|
|
1144
|
+
local current_origin
|
|
1145
|
+
current_origin="$(git remote get-url origin 2>/dev/null || echo '')"
|
|
1146
|
+
case "$current_origin" in
|
|
1147
|
+
*[Cc]lawpump/claw-agent*) : ;;
|
|
1148
|
+
*)
|
|
1149
|
+
log_warn "Re-pointing origin to the ClawPump fork (was: ${current_origin:-none})."
|
|
1150
|
+
git remote set-url origin "$REPO_URL_HTTPS" 2>/dev/null \
|
|
1151
|
+
|| git remote add origin "$REPO_URL_HTTPS"
|
|
1152
|
+
repo_repointed="yes"
|
|
1153
|
+
;;
|
|
1154
|
+
esac
|
|
1155
|
+
|
|
1138
1156
|
local autostash_ref=""
|
|
1139
1157
|
if [ -n "$(git status --porcelain)" ]; then
|
|
1140
1158
|
# A previously interrupted update can leave the index with
|
|
@@ -1164,11 +1182,23 @@ clone_repo() {
|
|
|
1164
1182
|
git remote set-branches origin "$BRANCH" 2>/dev/null || true
|
|
1165
1183
|
git fetch origin "$BRANCH"
|
|
1166
1184
|
git checkout "$BRANCH"
|
|
1167
|
-
|
|
1185
|
+
if [ "$repo_repointed" = "yes" ]; then
|
|
1186
|
+
# Upstream -> fork is a diverged history; a fast-forward is
|
|
1187
|
+
# impossible across the fork point. Hard-reset the branch onto
|
|
1188
|
+
# the fork so the working tree becomes the ClawPump source.
|
|
1189
|
+
log_info "Resetting $BRANCH to the ClawPump fork (origin/$BRANCH)..."
|
|
1190
|
+
git reset --hard "origin/$BRANCH"
|
|
1191
|
+
else
|
|
1192
|
+
git pull --ff-only origin "$BRANCH"
|
|
1193
|
+
fi
|
|
1168
1194
|
|
|
1169
1195
|
if [ -n "$autostash_ref" ]; then
|
|
1170
1196
|
local restore_now="yes"
|
|
1171
|
-
if [
|
|
1197
|
+
if [ "$repo_repointed" = "yes" ]; then
|
|
1198
|
+
# Don't replay upstream-Hermes local edits onto the fork —
|
|
1199
|
+
# they target different code and would only conflict.
|
|
1200
|
+
restore_now="no"
|
|
1201
|
+
elif [ -t 0 ] && [ -t 1 ]; then
|
|
1172
1202
|
echo
|
|
1173
1203
|
log_warn "Local changes were stashed before updating."
|
|
1174
1204
|
log_warn "Restoring them may reapply local customizations onto the updated codebase."
|