@clawpump/claw-agent 0.1.0 → 0.1.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/LICENSE ADDED
@@ -0,0 +1,32 @@
1
+ claw-agent (@clawpump/claw-agent) is a distribution of the Hermes Agent.
2
+ It bundles the Hermes Agent by Nous Research together with ClawPump's
3
+ modifications and branding. Both the original work and the modifications are
4
+ provided under the MIT License below. The Hermes Agent copyright notice is
5
+ retained as required.
6
+
7
+ Upstream: https://github.com/NousResearch/hermes-agent
8
+
9
+ ----------------------------------------------------------------------
10
+
11
+ MIT License
12
+
13
+ Copyright (c) 2025 Nous Research (Hermes Agent)
14
+ Copyright (c) 2026 ClawPump (claw-agent distribution and modifications)
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ of this software and associated documentation files (the "Software"), to deal
18
+ in the Software without restriction, including without limitation the rights
19
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ copies of the Software, and to permit persons to whom the Software is
21
+ furnished to do so, subject to the following conditions:
22
+
23
+ The above copyright notice and this permission notice shall be included in all
24
+ copies or substantial portions of the Software.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ SOFTWARE.
@@ -9179,6 +9179,28 @@ def _discard_lockfile_churn(git_cmd, repo_root):
9179
9179
  pass
9180
9180
 
9181
9181
 
9182
+ def _cmd_update_claw_npm():
9183
+ """Update a ClawPump agent that was installed via ``npx @clawpump/claw-agent``.
9184
+
9185
+ These installs have no git checkout (the bundle ships inside the npm
9186
+ package), so the normal git-pull update can't apply. Re-run the npm
9187
+ installer instead — it re-bundles the latest and reinstalls in place.
9188
+ """
9189
+ print("→ Updating ClawPump agent via npm (npx @clawpump/claw-agent@latest)…")
9190
+ npx = shutil.which("npx")
9191
+ if not npx:
9192
+ print("✗ npx (Node.js) not found. Install Node.js, then run:")
9193
+ print(" npx @clawpump/claw-agent@latest")
9194
+ sys.exit(1)
9195
+ try:
9196
+ subprocess.run([npx, "-y", "@clawpump/claw-agent@latest"], check=True)
9197
+ except subprocess.CalledProcessError as exc:
9198
+ print(f"✗ Update failed (exit {exc.returncode}). Try manually:")
9199
+ print(" npx @clawpump/claw-agent@latest")
9200
+ sys.exit(1)
9201
+ print("✓ ClawPump agent updated. Restart your session with `claw`.")
9202
+
9203
+
9182
9204
  def cmd_update(args):
9183
9205
  """Update Hermes Agent to the latest version.
9184
9206
 
@@ -9197,6 +9219,12 @@ def cmd_update(args):
9197
9219
  managed_error("update Hermes Agent")
9198
9220
  return
9199
9221
 
9222
+ # ClawPump agents installed via `npx @clawpump/claw-agent` have no git
9223
+ # checkout to pull — update by re-running the npm installer instead.
9224
+ if (PROJECT_ROOT / ".claw-bundle").exists():
9225
+ _cmd_update_claw_npm()
9226
+ return
9227
+
9200
9228
  # Docker users can't ``git pull`` — the image excludes ``.git`` from
9201
9229
  # the build context. Bail with a friendly explanation pointing at
9202
9230
  # ``docker pull`` BEFORE any of the apply-path / check-path branches
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawpump/claw-agent",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,7 +12,8 @@
12
12
  "files": [
13
13
  "bin/",
14
14
  "agent/",
15
- "README.md"
15
+ "README.md",
16
+ "LICENSE"
16
17
  ],
17
18
  "scripts": {
18
19
  "build": "node scripts/build-bundle.mjs",