clawpowers 1.1.4 → 2.0.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 +94 -0
- package/LICENSE +44 -0
- package/README.md +204 -228
- package/SECURITY.md +72 -0
- package/dist/index.d.ts +844 -0
- package/dist/index.js +2536 -0
- package/dist/index.js.map +1 -0
- package/package.json +50 -44
- package/.claude-plugin/manifest.json +0 -19
- package/.codex/INSTALL.md +0 -36
- package/.cursor-plugin/manifest.json +0 -21
- package/.opencode/INSTALL.md +0 -52
- package/ARCHITECTURE.md +0 -69
- package/bin/clawpowers.js +0 -625
- package/bin/clawpowers.sh +0 -91
- package/docs/demo/clawpowers-demo.cast +0 -197
- package/docs/demo/clawpowers-demo.gif +0 -0
- package/docs/launch-images/25-skills-breakdown.jpg +0 -0
- package/docs/launch-images/clawpowers-vs-superpowers.jpg +0 -0
- package/docs/launch-images/economic-code-optimization.jpg +0 -0
- package/docs/launch-images/native-vs-bridge-2.jpg +0 -0
- package/docs/launch-images/native-vs-bridge.jpg +0 -0
- package/docs/launch-images/post1-hero-lobster.jpg +0 -0
- package/docs/launch-images/post2-dashboard.jpg +0 -0
- package/docs/launch-images/post3-superpowers.jpg +0 -0
- package/docs/launch-images/post4-before-after.jpg +0 -0
- package/docs/launch-images/post5-install-now.jpg +0 -0
- package/docs/launch-images/ultimate-stack.jpg +0 -0
- package/docs/launch-posts.md +0 -76
- package/docs/quickstart-first-transaction.md +0 -204
- package/gemini-extension.json +0 -32
- package/hooks/session-start +0 -205
- package/hooks/session-start.cmd +0 -43
- package/hooks/session-start.js +0 -163
- package/runtime/demo/README.md +0 -78
- package/runtime/demo/x402-mock-server.js +0 -230
- package/runtime/feedback/analyze.js +0 -621
- package/runtime/feedback/analyze.sh +0 -546
- package/runtime/init.js +0 -210
- package/runtime/init.sh +0 -178
- package/runtime/metrics/collector.js +0 -361
- package/runtime/metrics/collector.sh +0 -308
- package/runtime/payments/ledger.js +0 -305
- package/runtime/payments/ledger.sh +0 -262
- package/runtime/payments/pipeline.js +0 -455
- package/runtime/persistence/store.js +0 -433
- package/runtime/persistence/store.sh +0 -303
- package/skill.json +0 -106
- package/skills/agent-bounties/SKILL.md +0 -553
- package/skills/agent-payments/SKILL.md +0 -479
- package/skills/brainstorming/SKILL.md +0 -233
- package/skills/content-pipeline/SKILL.md +0 -282
- package/skills/cross-project-knowledge/SKILL.md +0 -345
- package/skills/dispatching-parallel-agents/SKILL.md +0 -305
- package/skills/economic-code-optimization/SKILL.md +0 -265
- package/skills/executing-plans/SKILL.md +0 -255
- package/skills/finishing-a-development-branch/SKILL.md +0 -260
- package/skills/formal-verification-lite/SKILL.md +0 -441
- package/skills/learn-how-to-learn/SKILL.md +0 -235
- package/skills/market-intelligence/SKILL.md +0 -323
- package/skills/meta-skill-evolution/SKILL.md +0 -325
- package/skills/prospecting/SKILL.md +0 -454
- package/skills/receiving-code-review/SKILL.md +0 -225
- package/skills/requesting-code-review/SKILL.md +0 -206
- package/skills/security-audit/SKILL.md +0 -353
- package/skills/self-healing-code/SKILL.md +0 -369
- package/skills/subagent-driven-development/SKILL.md +0 -244
- package/skills/systematic-debugging/SKILL.md +0 -355
- package/skills/test-driven-development/SKILL.md +0 -416
- package/skills/using-clawpowers/SKILL.md +0 -160
- package/skills/using-git-worktrees/SKILL.md +0 -261
- package/skills/validator/SKILL.md +0 -281
- package/skills/verification-before-completion/SKILL.md +0 -254
- package/skills/writing-plans/SKILL.md +0 -276
- package/skills/writing-skills/SKILL.md +0 -260
package/SECURITY.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
| Version | Supported |
|
|
6
|
+
| ------- | ------------------ |
|
|
7
|
+
| 2.0.x | ✅ Active support |
|
|
8
|
+
| < 2.0 | ❌ No support |
|
|
9
|
+
|
|
10
|
+
## Reporting a Vulnerability
|
|
11
|
+
|
|
12
|
+
**Do NOT open a public GitHub issue for security vulnerabilities.**
|
|
13
|
+
|
|
14
|
+
Please report security vulnerabilities via email:
|
|
15
|
+
|
|
16
|
+
📧 **security@ai-agent-economy.com**
|
|
17
|
+
|
|
18
|
+
Include:
|
|
19
|
+
- Description of the vulnerability
|
|
20
|
+
- Steps to reproduce
|
|
21
|
+
- Potential impact assessment
|
|
22
|
+
- Suggested fix (if any)
|
|
23
|
+
|
|
24
|
+
## Response Timeline
|
|
25
|
+
|
|
26
|
+
- **Acknowledgment:** Within 48 hours
|
|
27
|
+
- **Initial Assessment:** Within 5 business days
|
|
28
|
+
- **Fix Timeline:** Critical vulnerabilities within 7 days
|
|
29
|
+
|
|
30
|
+
## Security Design Principles
|
|
31
|
+
|
|
32
|
+
### Spending Policy (Financial Safety)
|
|
33
|
+
- **Fail-closed:** Any policy error results in payment rejection
|
|
34
|
+
- **Never auto-retry:** Failed payments are logged but never automatically retried
|
|
35
|
+
- **Daily limits:** Hard-enforced, cannot be overridden by RSI
|
|
36
|
+
- **Domain allowlists:** When configured, only listed domains can receive payments
|
|
37
|
+
|
|
38
|
+
### RSI Safety Invariants
|
|
39
|
+
The following can **NEVER** be modified by the RSI engine:
|
|
40
|
+
1. Spending limits and SpendingPolicy configuration
|
|
41
|
+
2. Core identity and directives
|
|
42
|
+
3. RSI safety tier definitions
|
|
43
|
+
4. Sandbox boundaries
|
|
44
|
+
5. Authentication credentials
|
|
45
|
+
|
|
46
|
+
### T4 Gate
|
|
47
|
+
T4 (Architecture Proposals) mutations **always** require human approval. The `'auto'` mode is rejected at the type system level and the validation layer.
|
|
48
|
+
|
|
49
|
+
### Wallet Security
|
|
50
|
+
- Private keys are encrypted at rest using AES-256-GCM
|
|
51
|
+
- Key derivation uses scrypt (N=16384, r=8, p=1)
|
|
52
|
+
- Atomic file writes prevent corruption
|
|
53
|
+
- Backup files created before overwrites
|
|
54
|
+
|
|
55
|
+
### Memory Integrity
|
|
56
|
+
- Episodic memory is append-only (JSONL)
|
|
57
|
+
- Procedural memory uses atomic writes with backup
|
|
58
|
+
- Checkpoint files use write-to-temp-then-rename pattern
|
|
59
|
+
- Corruption recovery is built into episodic memory
|
|
60
|
+
|
|
61
|
+
## Dependencies
|
|
62
|
+
|
|
63
|
+
This library has minimal runtime dependencies:
|
|
64
|
+
- `zod` — Schema validation (no known vulnerabilities)
|
|
65
|
+
- Node.js built-in `crypto` — For wallet operations
|
|
66
|
+
|
|
67
|
+
## Audit
|
|
68
|
+
|
|
69
|
+
The codebase enforces:
|
|
70
|
+
- Zero `any` types in TypeScript
|
|
71
|
+
- Strict mode enabled
|
|
72
|
+
- All financial operations logged to audit trail
|