clawpowers 2.2.6 → 2.2.7
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 +186 -175
- package/COMPATIBILITY.md +48 -13
- package/KNOWN_LIMITATIONS.md +20 -19
- package/LICENSE +44 -44
- package/LICENSING.md +10 -10
- package/README.md +486 -462
- package/SECURITY.md +52 -52
- package/dist/index.d.ts +17 -5
- package/dist/index.js +186 -91
- package/dist/index.js.map +1 -1
- package/native/Cargo.lock +4927 -4927
- package/native/Cargo.toml +73 -73
- package/native/crates/canonical/Cargo.toml +24 -24
- package/native/crates/canonical/src/lib.rs +677 -677
- package/native/crates/compression/Cargo.toml +20 -20
- package/native/crates/compression/benches/compression_bench.rs +42 -42
- package/native/crates/compression/src/lib.rs +393 -393
- package/native/crates/evm-eth/Cargo.toml +13 -13
- package/native/crates/evm-eth/src/lib.rs +105 -105
- package/native/crates/fee/Cargo.toml +15 -15
- package/native/crates/fee/src/lib.rs +281 -281
- package/native/crates/index/Cargo.toml +16 -16
- package/native/crates/index/src/lib.rs +277 -277
- package/native/crates/policy/Cargo.toml +17 -17
- package/native/crates/policy/src/lib.rs +614 -614
- package/native/crates/security/Cargo.toml +22 -22
- package/native/crates/security/src/lib.rs +478 -478
- package/native/crates/tokens/Cargo.toml +13 -13
- package/native/crates/tokens/src/lib.rs +534 -534
- package/native/crates/verification/Cargo.toml +23 -23
- package/native/crates/verification/src/lib.rs +333 -333
- package/native/crates/wallet/Cargo.toml +20 -20
- package/native/crates/wallet/src/lib.rs +261 -261
- package/native/crates/x402/Cargo.toml +30 -30
- package/native/crates/x402/src/lib.rs +423 -423
- package/native/ffi/Cargo.toml +34 -34
- package/native/ffi/build.rs +4 -4
- package/native/ffi/src/lib.rs +352 -352
- package/native/ffi/tests/integration.rs +354 -354
- package/native/pyo3/Cargo.toml +26 -26
- package/native/pyo3/pyproject.toml +16 -16
- package/native/pyo3/src/lib.rs +407 -407
- package/native/pyo3/tests/test_smoke.py +180 -180
- package/native/wasm/Cargo.toml +47 -47
- package/native/wasm/pkg/.gitignore +6 -6
- package/native/wasm/pkg/clawpowers_wasm.d.ts +208 -208
- package/native/wasm/pkg/clawpowers_wasm.js +872 -872
- package/native/wasm/pkg/clawpowers_wasm_bg.wasm.d.ts +40 -40
- package/native/wasm/pkg/package.json +16 -16
- package/native/wasm/pkg-node/clawpowers_wasm.d.ts +143 -143
- package/native/wasm/pkg-node/clawpowers_wasm.js +798 -798
- package/native/wasm/pkg-node/clawpowers_wasm_bg.wasm.d.ts +40 -40
- package/native/wasm/pkg-node/package.json +12 -12
- package/native/wasm/src/lib.rs +433 -433
- package/package.json +12 -8
- package/scripts/build-wasm.mjs +59 -0
- package/scripts/generate_hermes_wrappers.py +211 -0
- package/scripts/hermes_wrapper_overrides.json +184 -0
- package/scripts/run-python-script.mjs +48 -0
- package/scripts/verify-consumer-install.mjs +109 -0
- package/scripts/verify-wasm-artifacts.mjs +25 -2
- package/scripts/verify_hermes_wrappers.py +154 -0
- package/skill.json +1 -1
- package/skills/1password/SKILL.md +34 -0
- package/skills/README.md +44 -0
- package/skills/agent-nexus-2/SKILL.md +34 -0
- package/skills/apple-notes/SKILL.md +34 -0
- package/skills/apple-reminders/SKILL.md +34 -0
- package/skills/autoresearch/SKILL.md +43 -0
- package/skills/bear-notes/SKILL.md +34 -0
- package/skills/blogwatcher/SKILL.md +34 -0
- package/skills/blucli/SKILL.md +34 -0
- package/skills/bluebubbles/SKILL.md +34 -0
- package/skills/business-strategy/SKILL.md +41 -0
- package/skills/camsnap/SKILL.md +34 -0
- package/skills/canvas/SKILL.md +34 -0
- package/skills/clawhub/SKILL.md +34 -0
- package/skills/coding-agent/SKILL.md +34 -0
- package/skills/coding-discipline.skill/SKILL.md +34 -0
- package/skills/content-writer/SKILL.md +41 -0
- package/skills/discord/SKILL.md +34 -0
- package/skills/eightctl/SKILL.md +34 -0
- package/skills/execution-validation.skill/SKILL.md +34 -0
- package/skills/gemini/SKILL.md +34 -0
- package/skills/gh-issues/SKILL.md +34 -0
- package/skills/gifgrep/SKILL.md +34 -0
- package/skills/github/SKILL.md +41 -0
- package/skills/gog/SKILL.md +34 -0
- package/skills/goplaces/SKILL.md +34 -0
- package/skills/healthcheck/SKILL.md +34 -0
- package/skills/himalaya/SKILL.md +34 -0
- package/skills/humanize/SKILL.md +41 -0
- package/skills/imsg/SKILL.md +34 -0
- package/skills/itp/SKILL.md +112 -0
- package/skills/mcporter/SKILL.md +34 -0
- package/skills/model-usage/SKILL.md +34 -0
- package/skills/nano-pdf/SKILL.md +34 -0
- package/skills/node-connect/SKILL.md +34 -0
- package/skills/notion/SKILL.md +34 -0
- package/skills/obsidian/SKILL.md +34 -0
- package/skills/openai-whisper/SKILL.md +34 -0
- package/skills/openai-whisper-api/SKILL.md +34 -0
- package/skills/openhue/SKILL.md +34 -0
- package/skills/oracle/SKILL.md +34 -0
- package/skills/ordercli/SKILL.md +34 -0
- package/skills/peekaboo/SKILL.md +34 -0
- package/skills/polyclaw/SKILL.md +34 -0
- package/skills/prospector/SKILL.md +41 -0
- package/skills/rsi.skill/SKILL.md +34 -0
- package/skills/sag/SKILL.md +34 -0
- package/skills/security/SKILL.md +41 -0
- package/skills/session-logs/SKILL.md +34 -0
- package/skills/sherpa-onnx-tts/SKILL.md +34 -0
- package/skills/skill-creator/SKILL.md +34 -0
- package/skills/slack/SKILL.md +34 -0
- package/skills/songsee/SKILL.md +34 -0
- package/skills/sonoscli/SKILL.md +34 -0
- package/skills/spotify-player/SKILL.md +34 -0
- package/skills/strykr-prism/SKILL.md +41 -0
- package/skills/summarize/SKILL.md +34 -0
- package/skills/taskbridge/SKILL.md +34 -0
- package/skills/things-mac/SKILL.md +34 -0
- package/skills/tmux/SKILL.md +34 -0
- package/skills/trello/SKILL.md +34 -0
- package/skills/validator-agent/SKILL.md +41 -0
- package/skills/video-frames/SKILL.md +34 -0
- package/skills/voice-call/SKILL.md +34 -0
- package/skills/wacli/SKILL.md +34 -0
- package/skills/weather/SKILL.md +34 -0
- package/skills/webmcp-payments/SKILL.md +41 -0
- package/skills/xurl/SKILL.md +34 -0
- package/src/skills/catalog.ts +435 -435
- package/src/skills/executor.ts +56 -56
- package/src/skills/index.ts +3 -3
- package/src/skills/itp/SKILL.md +112 -112
- package/src/skills/loader.ts +262 -193
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
[package]
|
|
2
|
-
name = "clawpowers-compression"
|
|
3
|
-
version.workspace = true
|
|
4
|
-
edition.workspace = true
|
|
5
|
-
license.workspace = true
|
|
6
|
-
|
|
7
|
-
[dependencies]
|
|
8
|
-
serde = { workspace = true }
|
|
9
|
-
serde_json = { workspace = true }
|
|
10
|
-
sha2 = { workspace = true }
|
|
11
|
-
rand = { workspace = true }
|
|
12
|
-
thiserror = { workspace = true }
|
|
13
|
-
tracing = { workspace = true }
|
|
14
|
-
|
|
15
|
-
[dev-dependencies]
|
|
16
|
-
criterion = { workspace = true }
|
|
17
|
-
|
|
18
|
-
[[bench]]
|
|
19
|
-
name = "compression_bench"
|
|
20
|
-
harness = false
|
|
1
|
+
[package]
|
|
2
|
+
name = "clawpowers-compression"
|
|
3
|
+
version.workspace = true
|
|
4
|
+
edition.workspace = true
|
|
5
|
+
license.workspace = true
|
|
6
|
+
|
|
7
|
+
[dependencies]
|
|
8
|
+
serde = { workspace = true }
|
|
9
|
+
serde_json = { workspace = true }
|
|
10
|
+
sha2 = { workspace = true }
|
|
11
|
+
rand = { workspace = true }
|
|
12
|
+
thiserror = { workspace = true }
|
|
13
|
+
tracing = { workspace = true }
|
|
14
|
+
|
|
15
|
+
[dev-dependencies]
|
|
16
|
+
criterion = { workspace = true }
|
|
17
|
+
|
|
18
|
+
[[bench]]
|
|
19
|
+
name = "compression_bench"
|
|
20
|
+
harness = false
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
use clawpowers_compression::{CompressionConfig, TurboCompressor};
|
|
2
|
-
use criterion::{BenchmarkId, Criterion, criterion_group, criterion_main};
|
|
3
|
-
|
|
4
|
-
fn make_vector(dim: usize, seed: u64) -> Vec<f32> {
|
|
5
|
-
use std::collections::hash_map::DefaultHasher;
|
|
6
|
-
use std::hash::{Hash, Hasher};
|
|
7
|
-
(0..dim)
|
|
8
|
-
.map(|i| {
|
|
9
|
-
let mut h = DefaultHasher::new();
|
|
10
|
-
(seed ^ i as u64).hash(&mut h);
|
|
11
|
-
let v = h.finish() as f32 / u64::MAX as f32;
|
|
12
|
-
v * 2.0 - 1.0
|
|
13
|
-
})
|
|
14
|
-
.collect()
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
fn bench_compress_decompress(c: &mut Criterion) {
|
|
18
|
-
let dim = 768;
|
|
19
|
-
let compressor = TurboCompressor::new(CompressionConfig {
|
|
20
|
-
dimensions: dim,
|
|
21
|
-
quantization_bits: 8,
|
|
22
|
-
rotation_seed: 0xDEAD_BEEF,
|
|
23
|
-
});
|
|
24
|
-
let vector = make_vector(dim, 1);
|
|
25
|
-
|
|
26
|
-
let mut group = c.benchmark_group("turbo_compression");
|
|
27
|
-
|
|
28
|
-
group.bench_function(BenchmarkId::new("compress", dim), |b| {
|
|
29
|
-
b.iter(|| compressor.compress(&vector).expect("compress"));
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
let compressed = compressor.compress(&vector).expect("pre-compress");
|
|
33
|
-
|
|
34
|
-
group.bench_function(BenchmarkId::new("decompress", dim), |b| {
|
|
35
|
-
b.iter(|| compressor.decompress(&compressed).expect("decompress"));
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
group.finish();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
criterion_group!(benches, bench_compress_decompress);
|
|
42
|
-
criterion_main!(benches);
|
|
1
|
+
use clawpowers_compression::{CompressionConfig, TurboCompressor};
|
|
2
|
+
use criterion::{BenchmarkId, Criterion, criterion_group, criterion_main};
|
|
3
|
+
|
|
4
|
+
fn make_vector(dim: usize, seed: u64) -> Vec<f32> {
|
|
5
|
+
use std::collections::hash_map::DefaultHasher;
|
|
6
|
+
use std::hash::{Hash, Hasher};
|
|
7
|
+
(0..dim)
|
|
8
|
+
.map(|i| {
|
|
9
|
+
let mut h = DefaultHasher::new();
|
|
10
|
+
(seed ^ i as u64).hash(&mut h);
|
|
11
|
+
let v = h.finish() as f32 / u64::MAX as f32;
|
|
12
|
+
v * 2.0 - 1.0
|
|
13
|
+
})
|
|
14
|
+
.collect()
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
fn bench_compress_decompress(c: &mut Criterion) {
|
|
18
|
+
let dim = 768;
|
|
19
|
+
let compressor = TurboCompressor::new(CompressionConfig {
|
|
20
|
+
dimensions: dim,
|
|
21
|
+
quantization_bits: 8,
|
|
22
|
+
rotation_seed: 0xDEAD_BEEF,
|
|
23
|
+
});
|
|
24
|
+
let vector = make_vector(dim, 1);
|
|
25
|
+
|
|
26
|
+
let mut group = c.benchmark_group("turbo_compression");
|
|
27
|
+
|
|
28
|
+
group.bench_function(BenchmarkId::new("compress", dim), |b| {
|
|
29
|
+
b.iter(|| compressor.compress(&vector).expect("compress"));
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
let compressed = compressor.compress(&vector).expect("pre-compress");
|
|
33
|
+
|
|
34
|
+
group.bench_function(BenchmarkId::new("decompress", dim), |b| {
|
|
35
|
+
b.iter(|| compressor.decompress(&compressed).expect("decompress"));
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
group.finish();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
criterion_group!(benches, bench_compress_decompress);
|
|
42
|
+
criterion_main!(benches);
|