clawpowers 2.0.0 → 2.2.0
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 +32 -0
- package/COMPATIBILITY.md +13 -0
- package/KNOWN_LIMITATIONS.md +19 -0
- package/LICENSING.md +10 -0
- package/README.md +201 -9
- package/SECURITY.md +33 -53
- package/dist/index.d.ts +638 -5
- package/dist/index.js +986 -58
- package/dist/index.js.map +1 -1
- package/native/Cargo.lock +4863 -0
- package/native/Cargo.toml +73 -0
- package/native/crates/canonical/Cargo.toml +24 -0
- package/native/crates/canonical/src/lib.rs +673 -0
- package/native/crates/compression/Cargo.toml +20 -0
- package/native/crates/compression/benches/compression_bench.rs +42 -0
- package/native/crates/compression/src/lib.rs +393 -0
- package/native/crates/evm-eth/Cargo.toml +13 -0
- package/native/crates/evm-eth/src/lib.rs +105 -0
- package/native/crates/fee/Cargo.toml +15 -0
- package/native/crates/fee/src/lib.rs +281 -0
- package/native/crates/index/Cargo.toml +16 -0
- package/native/crates/index/src/lib.rs +277 -0
- package/native/crates/policy/Cargo.toml +17 -0
- package/native/crates/policy/src/lib.rs +614 -0
- package/native/crates/security/Cargo.toml +22 -0
- package/native/crates/security/src/lib.rs +478 -0
- package/native/crates/tokens/Cargo.toml +13 -0
- package/native/crates/tokens/src/lib.rs +534 -0
- package/native/crates/verification/Cargo.toml +23 -0
- package/native/crates/verification/src/lib.rs +333 -0
- package/native/crates/wallet/Cargo.toml +20 -0
- package/native/crates/wallet/src/lib.rs +261 -0
- package/native/crates/x402/Cargo.toml +30 -0
- package/native/crates/x402/src/lib.rs +423 -0
- package/native/ffi/Cargo.toml +34 -0
- package/native/ffi/build.rs +4 -0
- package/native/ffi/index.node +0 -0
- package/native/ffi/src/lib.rs +352 -0
- package/native/ffi/tests/integration.rs +354 -0
- package/native/pyo3/Cargo.toml +26 -0
- package/native/pyo3/pyproject.toml +16 -0
- package/native/pyo3/src/lib.rs +407 -0
- package/native/pyo3/tests/test_smoke.py +180 -0
- package/native/wasm/Cargo.toml +44 -0
- package/native/wasm/pkg/.gitignore +6 -0
- package/native/wasm/pkg/clawpowers_wasm.d.ts +208 -0
- package/native/wasm/pkg/clawpowers_wasm.js +872 -0
- package/native/wasm/pkg/clawpowers_wasm_bg.wasm +0 -0
- package/native/wasm/pkg/clawpowers_wasm_bg.wasm.d.ts +40 -0
- package/native/wasm/pkg/package.json +17 -0
- package/native/wasm/pkg-node/.gitignore +6 -0
- package/native/wasm/pkg-node/clawpowers_wasm.d.ts +143 -0
- package/native/wasm/pkg-node/clawpowers_wasm.js +798 -0
- package/native/wasm/pkg-node/clawpowers_wasm_bg.wasm +0 -0
- package/native/wasm/pkg-node/clawpowers_wasm_bg.wasm.d.ts +40 -0
- package/native/wasm/pkg-node/package.json +13 -0
- package/native/wasm/src/lib.rs +433 -0
- package/package.json +24 -3
- package/src/skills/catalog.ts +435 -0
- package/src/skills/executor.ts +56 -0
- package/src/skills/index.ts +3 -0
- package/src/skills/itp/SKILL.md +112 -0
- package/src/skills/loader.ts +193 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
[workspace]
|
|
2
|
+
resolver = "2"
|
|
3
|
+
members = [
|
|
4
|
+
"crates/evm-eth",
|
|
5
|
+
"crates/wallet",
|
|
6
|
+
"crates/policy",
|
|
7
|
+
"crates/tokens",
|
|
8
|
+
"crates/fee",
|
|
9
|
+
"crates/x402",
|
|
10
|
+
"crates/canonical",
|
|
11
|
+
"crates/compression",
|
|
12
|
+
"crates/index",
|
|
13
|
+
"crates/verification",
|
|
14
|
+
"crates/security",
|
|
15
|
+
"ffi",
|
|
16
|
+
"wasm",
|
|
17
|
+
"pyo3",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[workspace.package]
|
|
21
|
+
version = "0.1.0"
|
|
22
|
+
edition = "2024"
|
|
23
|
+
license = "BUSL-1.1"
|
|
24
|
+
authors = ["AI Agent Economy <bill@ai-agent-economy.com>"]
|
|
25
|
+
repository = "https://github.com/up2itnow0822/clawpowers-core"
|
|
26
|
+
|
|
27
|
+
[workspace.dependencies]
|
|
28
|
+
# EVM / Crypto
|
|
29
|
+
alloy = { version = "1.8", features = ["full"] }
|
|
30
|
+
alloy-signer = "1.8"
|
|
31
|
+
alloy-signer-local = "1.8"
|
|
32
|
+
alloy-primitives = "1.5"
|
|
33
|
+
|
|
34
|
+
# Async
|
|
35
|
+
tokio = { version = "1", features = ["full"] }
|
|
36
|
+
reqwest = { version = "0.12", features = ["json"] }
|
|
37
|
+
|
|
38
|
+
# Serialization
|
|
39
|
+
serde = { version = "1", features = ["derive"] }
|
|
40
|
+
serde_json = "1"
|
|
41
|
+
|
|
42
|
+
# Database
|
|
43
|
+
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
44
|
+
|
|
45
|
+
# Crypto / Hashing
|
|
46
|
+
sha2 = "0.10"
|
|
47
|
+
rand = "0.9"
|
|
48
|
+
zeroize = { version = "1", features = ["derive"] }
|
|
49
|
+
|
|
50
|
+
# FFI
|
|
51
|
+
napi = { version = "3", features = ["napi9", "async", "serde-json"] }
|
|
52
|
+
napi-derive = "3"
|
|
53
|
+
|
|
54
|
+
# WASM (optional)
|
|
55
|
+
wasm-bindgen = "0.2"
|
|
56
|
+
|
|
57
|
+
# PyO3 (Python bindings)
|
|
58
|
+
pyo3 = { version = "0.24", features = ["extension-module", "abi3-py39"] }
|
|
59
|
+
|
|
60
|
+
# Testing / Bench
|
|
61
|
+
criterion = { version = "0.5", features = ["html_reports"] }
|
|
62
|
+
|
|
63
|
+
# Errors
|
|
64
|
+
thiserror = "2"
|
|
65
|
+
|
|
66
|
+
# Logging
|
|
67
|
+
tracing = "0.1"
|
|
68
|
+
|
|
69
|
+
# Chrono
|
|
70
|
+
chrono = { version = "0.4", features = ["serde"] }
|
|
71
|
+
|
|
72
|
+
# UUID
|
|
73
|
+
uuid = { version = "1", features = ["v4", "serde"] }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "clawpowers-canonical"
|
|
3
|
+
version.workspace = true
|
|
4
|
+
edition.workspace = true
|
|
5
|
+
license.workspace = true
|
|
6
|
+
|
|
7
|
+
[features]
|
|
8
|
+
default = ["native"]
|
|
9
|
+
native = ["rusqlite"]
|
|
10
|
+
wasm = []
|
|
11
|
+
|
|
12
|
+
[dependencies]
|
|
13
|
+
rusqlite = { workspace = true, optional = true }
|
|
14
|
+
serde = { workspace = true }
|
|
15
|
+
serde_json = { workspace = true }
|
|
16
|
+
sha2 = { workspace = true }
|
|
17
|
+
thiserror = { workspace = true }
|
|
18
|
+
tracing = { workspace = true }
|
|
19
|
+
chrono = { workspace = true }
|
|
20
|
+
uuid = { workspace = true }
|
|
21
|
+
|
|
22
|
+
[dev-dependencies]
|
|
23
|
+
tokio = { workspace = true }
|
|
24
|
+
rusqlite = { workspace = true }
|