clawpowers 2.2.5 → 2.2.6

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.
@@ -110,7 +110,11 @@ impl CanonicalRecord {
110
110
  pub fn compute_sha256(content: &str) -> String {
111
111
  let mut hasher = Sha256::new();
112
112
  hasher.update(content.as_bytes());
113
- format!("{:x}", hasher.finalize())
113
+ hasher
114
+ .finalize()
115
+ .iter()
116
+ .map(|byte| format!("{byte:02x}"))
117
+ .collect()
114
118
  }
115
119
 
116
120
  // =============================================================================
@@ -42,3 +42,6 @@ getrandom = { version = "0.2", features = ["js"] }
42
42
 
43
43
  [dev-dependencies]
44
44
  wasm-bindgen-test = "0.3"
45
+
46
+ [package.metadata.wasm-pack.profile.release]
47
+ wasm-opt = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawpowers",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Skills library for AI agents — payments, memory, RSI, wallet. Drop-in capability layer for any agent framework.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,13 +28,14 @@
28
28
  "CHANGELOG.md",
29
29
  "SECURITY.md",
30
30
  "COMPATIBILITY.md",
31
+ "skill.json",
31
32
  "KNOWN_LIMITATIONS.md",
32
33
  "LICENSING.md",
33
34
  "scripts/"
34
35
  ],
35
36
  "scripts": {
36
37
  "build:native": "cd native && cargo build --release --workspace || echo 'Rust not installed - using WASM/TS fallback'",
37
- "build:wasm": "cd native/wasm && wasm-pack build --target nodejs --out-dir pkg-node || true",
38
+ "build:wasm": "cd native/wasm && wasm-pack build --target nodejs --out-dir pkg-node && rm -f pkg-node/.gitignore",
38
39
  "build": "tsup",
39
40
  "test": "vitest run",
40
41
  "test:watch": "vitest",
@@ -43,7 +44,7 @@
43
44
  "verify:pack": "npm pack --dry-run",
44
45
  "clean": "rm -rf dist",
45
46
  "prepublishOnly": "npm run build",
46
- "prepack": "npm run build"
47
+ "prepack": "npm run build:wasm && npm run build"
47
48
  },
48
49
  "keywords": [
49
50
  "ai-agent",
@@ -32,7 +32,7 @@ if (!pack) {
32
32
  process.exit(1);
33
33
  }
34
34
 
35
- const files = (pack[0]?.files ?? []).map(f => f.path);
35
+ const files = (pack[0]?.files ?? []).map(f => String(f.path).replace(/^package\//, ''));
36
36
 
37
37
  const required = [
38
38
  'native/wasm/pkg-node/clawpowers_wasm.js',
package/skill.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "clawpowers",
3
+ "version": "2.2.6",
4
+ "description": "Capability library for AI agents: payments, memory, RSI, wallet, swarm, and ITP primitives.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/up2itnow0822/ClawPowers-Skills"
8
+ },
9
+ "homepage": "https://clawpowers.ai",
10
+ "license": "BSL-1.1",
11
+ "packageManager": "npm",
12
+ "entrypoints": {
13
+ "library": "dist/index.js",
14
+ "types": "dist/index.d.ts"
15
+ },
16
+ "notes": [
17
+ "ClawPowers is a capability library, not a standalone OpenClaw wrapper.",
18
+ "For the stock OpenClaw wrapper runtime, use the clawpowers-agent package."
19
+ ]
20
+ }
Binary file
@@ -1,6 +0,0 @@
1
- *
2
- !.gitignore
3
- !*.js
4
- !*.d.ts
5
- !*.wasm
6
- !package.json