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.
- package/CHANGELOG.md +15 -0
- package/COMPATIBILITY.md +1 -1
- package/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/native/crates/canonical/src/lib.rs +5 -1
- package/native/wasm/Cargo.toml +3 -0
- package/package.json +4 -3
- package/scripts/verify-wasm-artifacts.mjs +1 -1
- package/skill.json +20 -0
- package/native/ffi/index.node +0 -0
- package/native/wasm/pkg-node/.gitignore +0 -6
|
@@ -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
|
-
|
|
113
|
+
hasher
|
|
114
|
+
.finalize()
|
|
115
|
+
.iter()
|
|
116
|
+
.map(|byte| format!("{byte:02x}"))
|
|
117
|
+
.collect()
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
// =============================================================================
|
package/native/wasm/Cargo.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawpowers",
|
|
3
|
-
"version": "2.2.
|
|
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
|
|
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
|
+
}
|
package/native/ffi/index.node
DELETED
|
Binary file
|