@termix-it/cryptoclaw 1.0.3 → 1.0.5

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.
Files changed (30) hide show
  1. package/README.md +67 -521
  2. package/dist/{audio-preflight-_6ttSHmt.js → audio-preflight-DmX89zeN.js} +4 -4
  3. package/dist/{audio-transcription-runner-CR_2AH5G.js → audio-transcription-runner-DjCJFIGl.js} +1 -1
  4. package/dist/build-info.json +3 -3
  5. package/dist/bundled/boot-md/handler.js +6 -6
  6. package/dist/bundled/session-memory/handler.js +6 -6
  7. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  8. package/dist/{chrome-CXIrNn6H.js → chrome-HNJ5Np77.js} +8 -8
  9. package/dist/{deliver-BFJn3-fC.js → deliver-CExblvFE.js} +1 -1
  10. package/dist/{deliver-runtime-Bw0VKYNI.js → deliver-runtime-BJU4v7t5.js} +3 -3
  11. package/dist/{deps-send-whatsapp.runtime-ChcUz7xZ.js → deps-send-whatsapp.runtime-DWsx1vI_.js} +7 -7
  12. package/dist/{image-BI9ZrRUQ.js → image-XS6PINIE.js} +1 -1
  13. package/dist/{image-runtime-CPYGXqpg.js → image-runtime-nOUladfh.js} +3 -3
  14. package/dist/llm-slug-generator.js +6 -6
  15. package/dist/{pi-embedded--j-vyCUK.js → pi-embedded-BRzys1F7.js} +24 -24
  16. package/dist/{pi-embedded-helpers-CNzY8t5q.js → pi-embedded-helpers-Dc63NlxD.js} +3 -3
  17. package/dist/plugin-sdk/discord.js +6 -6
  18. package/dist/plugin-sdk/signal.js +2 -2
  19. package/dist/{pw-ai-CuA0BkwK.js → pw-ai-BYLaFCcQ.js} +1 -1
  20. package/dist/{slash-dispatch.runtime-DGex1-6v.js → slash-dispatch.runtime-BP2D7cZ8.js} +6 -6
  21. package/dist/{subagent-registry-runtime-DUQVA-gN.js → subagent-registry-runtime-DDIUIA48.js} +6 -6
  22. package/dist/{web-BlqPhzy5.js → web-Drf25Yd-.js} +6 -6
  23. package/package.json +19 -6
  24. package/skills/binance-address-info/SKILL.md +75 -0
  25. package/skills/binance-market-rank/SKILL.md +118 -0
  26. package/skills/binance-meme-rush/SKILL.md +108 -0
  27. package/skills/binance-spot/SKILL.md +158 -0
  28. package/skills/binance-token-audit/SKILL.md +81 -0
  29. package/skills/binance-token-info/SKILL.md +112 -0
  30. package/skills/binance-trading-signal/SKILL.md +84 -0
@@ -0,0 +1,158 @@
1
+ ---
2
+ name: binance-spot
3
+ description: Binance official spot trading skill — place orders, manage accounts, and access real-time market data via Binance Spot API. Sourced from github.com/binance/binance-skills-hub.
4
+ metadata: { "cryptoclaw": { "emoji": "🟡", "always": false } }
5
+ ---
6
+
7
+ # Binance Spot Trading
8
+
9
+ Official Binance skill for CEX spot trading. Supports 60+ endpoints for market data, order management, and account operations.
10
+
11
+ > Source: [binance/binance-skills-hub](https://github.com/binance/binance-skills-hub/tree/main/skills/binance/spot)
12
+
13
+ ## Configuration
14
+
15
+ Store credentials in `TOOLS.md` or environment:
16
+
17
+ ```
18
+ BINANCE_API_KEY=<your_api_key>
19
+ BINANCE_API_SECRET=<your_api_secret>
20
+ BINANCE_TESTNET=false # set true for testnet
21
+ ```
22
+
23
+ Signing methods supported: HMAC SHA256, RSA, Ed25519.
24
+
25
+ Security: display API key as first 5 + last 4 chars; secret key shows only last 5 chars.
26
+
27
+ **Always require explicit user confirmation before executing mainnet transactions.**
28
+
29
+ ## Base URLs
30
+
31
+ - Mainnet: `https://api.binance.com`
32
+ - Testnet: `https://testnet.binance.vision`
33
+
34
+ ## Market Data (no auth required)
35
+
36
+ ### Exchange Info
37
+ ```
38
+ GET /api/v3/exchangeInfo
39
+ GET /api/v3/exchangeInfo?symbol=BTCUSDT
40
+ ```
41
+
42
+ ### Price Ticker
43
+ ```
44
+ GET /api/v3/ticker/price?symbol=BTCUSDT
45
+ GET /api/v3/ticker/24hr?symbol=BTCUSDT
46
+ GET /api/v3/ticker/bookTicker?symbol=BTCUSDT
47
+ ```
48
+
49
+ ### Order Book
50
+ ```
51
+ GET /api/v3/depth?symbol=BTCUSDT&limit=20
52
+ ```
53
+
54
+ ### Klines / Candlesticks
55
+ ```
56
+ GET /api/v3/klines?symbol=BTCUSDT&interval=1h&limit=100
57
+ ```
58
+ Intervals: `1s`, `1m`, `3m`, `5m`, `15m`, `30m`, `1h`, `2h`, `4h`, `6h`, `8h`, `12h`, `1d`, `3d`, `1w`, `1M`
59
+
60
+ ### Recent Trades
61
+ ```
62
+ GET /api/v3/trades?symbol=BTCUSDT&limit=50
63
+ GET /api/v3/aggTrades?symbol=BTCUSDT&limit=50
64
+ ```
65
+
66
+ ### Average Price
67
+ ```
68
+ GET /api/v3/avgPrice?symbol=BTCUSDT
69
+ ```
70
+
71
+ ## Trading (auth required)
72
+
73
+ ### Place Order
74
+ ```
75
+ POST /api/v3/order
76
+ symbol=BTCUSDT
77
+ side=BUY|SELL
78
+ type=LIMIT|MARKET|STOP_LOSS_LIMIT|TAKE_PROFIT_LIMIT
79
+ quantity=0.001
80
+ price=60000 # required for LIMIT
81
+ timeInForce=GTC # GTC | IOC | FOK
82
+ ```
83
+
84
+ ### Test Order (no execution)
85
+ ```
86
+ POST /api/v3/order/test
87
+ ```
88
+
89
+ ### Cancel Order
90
+ ```
91
+ DELETE /api/v3/order?symbol=BTCUSDT&orderId=12345
92
+ DELETE /api/v3/openOrders?symbol=BTCUSDT # cancel all
93
+ ```
94
+
95
+ ### Query Order
96
+ ```
97
+ GET /api/v3/order?symbol=BTCUSDT&orderId=12345
98
+ GET /api/v3/openOrders?symbol=BTCUSDT
99
+ GET /api/v3/allOrders?symbol=BTCUSDT
100
+ ```
101
+
102
+ ### OCO Orders
103
+ ```
104
+ POST /api/v3/order/oco
105
+ POST /api/v3/orderList/oco
106
+ DELETE /api/v3/orderList?orderListId=12345
107
+ GET /api/v3/orderList?orderListId=12345
108
+ GET /api/v3/allOrderList
109
+ GET /api/v3/openOrderList
110
+ ```
111
+
112
+ ## Account (auth required)
113
+
114
+ ### Account Info
115
+ ```
116
+ GET /api/v3/account
117
+ ```
118
+ Returns balances, permissions, commission rates.
119
+
120
+ ### Commission Rates
121
+ ```
122
+ GET /api/v3/account/commission?symbol=BTCUSDT
123
+ ```
124
+
125
+ ### Trade History
126
+ ```
127
+ GET /api/v3/myTrades?symbol=BTCUSDT
128
+ ```
129
+
130
+ ### Allocations
131
+ ```
132
+ GET /api/v3/myAllocations?symbol=BTCUSDT
133
+ ```
134
+
135
+ ## Usage Examples
136
+
137
+ ```
138
+ User: What's the current BTC price?
139
+ → GET /api/v3/ticker/price?symbol=BTCUSDT
140
+
141
+ User: Show my USDT balance
142
+ → GET /api/v3/account → filter for USDT
143
+
144
+ User: Buy 0.001 BTC at market price
145
+ → Confirm with user first
146
+ → POST /api/v3/order {side:BUY, type:MARKET, quantity:0.001}
147
+
148
+ User: Place a limit sell for 0.01 ETH at $3500
149
+ → Confirm with user first
150
+ → POST /api/v3/order {symbol:ETHUSDT, side:SELL, type:LIMIT, quantity:0.01, price:3500, timeInForce:GTC}
151
+ ```
152
+
153
+ ## Safety Rules
154
+
155
+ - Never execute mainnet orders without explicit user confirmation
156
+ - Always show order details before submission
157
+ - Display masked credentials only (never full secret key)
158
+ - Testnet recommended for testing and development
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: binance-token-audit
3
+ description: Binance Web3 official skill — security audit for token contracts, detecting honeypots, rug pulls, and malicious functions across BSC, Base, Solana, and Ethereum. Sourced from github.com/binance/binance-skills-hub.
4
+ metadata: { "cryptoclaw": { "emoji": "🛡️", "always": false } }
5
+ ---
6
+
7
+ # Binance Token Security Audit
8
+
9
+ Official Binance Web3 skill for detecting scams, honeypots, and malicious contracts before trading.
10
+
11
+ > Source: [binance/binance-skills-hub](https://github.com/binance/binance-skills-hub/tree/main/skills/binance-web3/query-token-audit)
12
+
13
+ ## Supported Chains
14
+
15
+ | Chain | binanceChainId |
16
+ |----------|----------------|
17
+ | BSC | 56 |
18
+ | Base | 8453 |
19
+ | Solana | CT_501 |
20
+ | Ethereum | 1 |
21
+
22
+ ## API — Token Audit
23
+
24
+ ```
25
+ POST https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit
26
+ Content-Type: application/json
27
+
28
+ {
29
+ "binanceChainId": "56",
30
+ "contractAddress": "0x...",
31
+ "requestId": "<uuid-v4>"
32
+ }
33
+ ```
34
+
35
+ `requestId` must be a valid UUID v4 (generate a new one per request).
36
+
37
+ ## Risk Levels
38
+
39
+ | Level | Severity | Meaning |
40
+ |-------|----------|----------------------------------------------|
41
+ | 0–1 | LOW | Lower risk detected — NOT guaranteed safe |
42
+ | 2–3 | MEDIUM | Moderate risks — review carefully |
43
+ | 4 | HIGH | Critical risks — avoid trading |
44
+ | 5 | HIGH | Severe confirmed risks — block transaction |
45
+
46
+ ## Response Fields
47
+
48
+ - `hasResult`: whether audit data exists for this contract
49
+ - `isSupported`: whether this chain/contract is supported
50
+ - `riskLevel`: 0–5 numeric risk score
51
+ - `riskItems`: list of detected risk factors (honeypot, rug pull, malicious functions, etc.)
52
+ - `auditTime`: timestamp of audit
53
+
54
+ **Results are only valid when both `hasResult: true` AND `isSupported: true`.**
55
+
56
+ ## Critical Limitations
57
+
58
+ ⚠️ LOW risk does NOT mean "safe". Audit results are point-in-time snapshots only. Contract owners can modify contracts or restrict liquidity after your purchase. Always conduct your own research (DYOR).
59
+
60
+ This audit is for reference only and does not constitute investment or financial advice.
61
+
62
+ ## Usage Examples
63
+
64
+ ```
65
+ User: Is this contract safe to buy? 0xabc...
66
+ → POST Token Audit, binanceChainId:56, contractAddress:0xabc...
67
+ → Report risk level and detected risk items
68
+
69
+ User: Check this Solana token for honeypot
70
+ → POST Token Audit, binanceChainId:CT_501, contractAddress:<address>
71
+
72
+ User: Run security check before swapping
73
+ → Automatically call Token Audit before any swap operation
74
+ ```
75
+
76
+ ## Best Practice
77
+
78
+ Always run a token audit before:
79
+ - Swapping or buying an unknown token
80
+ - Adding liquidity to a new pool
81
+ - Interacting with an unfamiliar contract
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: binance-token-info
3
+ description: Binance Web3 official skill — search tokens, retrieve metadata, real-time market data, and candlestick charts across BSC, Base, and Solana. Sourced from github.com/binance/binance-skills-hub.
4
+ metadata: { "cryptoclaw": { "emoji": "🔍", "always": false } }
5
+ ---
6
+
7
+ # Binance Token Info
8
+
9
+ Official Binance Web3 skill for querying token details, market data, and price charts.
10
+
11
+ > Source: [binance/binance-skills-hub](https://github.com/binance/binance-skills-hub/tree/main/skills/binance-web3/query-token-info)
12
+
13
+ ## Supported Chains
14
+
15
+ | Chain | chainId | K-Line platform |
16
+ |--------|---------|-----------------|
17
+ | BSC | 56 | bsc |
18
+ | Base | 8453 | base |
19
+ | Solana | CT_501 | solana |
20
+
21
+ ## API 1 — Token Search
22
+
23
+ Search tokens by name, symbol, or contract address.
24
+
25
+ ```
26
+ GET https://web3.binance.com/bapi/defi/v1/public/wallet-direct/buw/wallet/token/search
27
+ ?keyword=<name|symbol|address>
28
+ &chainId=<chainId> # optional, omit for all chains
29
+ &sortBy=volume # optional
30
+ &page=1
31
+ &pageSize=20
32
+ ```
33
+
34
+ Response: token list with name, symbol, contract address, chain, price, volume.
35
+
36
+ ## API 2 — Token Metadata
37
+
38
+ Static token information.
39
+
40
+ ```
41
+ GET https://web3.binance.com/bapi/defi/v1/public/wallet-direct/buw/wallet/token/metadata
42
+ ?contractAddress=<address>
43
+ &chainId=<chainId>
44
+ ```
45
+
46
+ Response includes:
47
+ - Name, symbol, logo URL
48
+ - Social links (website, Twitter, Telegram)
49
+ - Creator address
50
+ - Audit status
51
+ - Project description
52
+
53
+ ## API 3 — Token Dynamic Data
54
+
55
+ Real-time market metrics.
56
+
57
+ ```
58
+ GET https://web3.binance.com/bapi/defi/v1/public/wallet-direct/buw/wallet/token/dynamic
59
+ ?contractAddress=<address>
60
+ &chainId=<chainId>
61
+ ```
62
+
63
+ Response includes:
64
+ - Current price (USD)
65
+ - 24h / 6h / 1h volume
66
+ - Market cap, fully diluted valuation
67
+ - Liquidity
68
+ - Holder count and distribution
69
+ - Transaction counts (buys/sells)
70
+ - Price change percentages across timeframes
71
+
72
+ ## API 4 — K-Line Candlestick Data
73
+
74
+ OHLCV price chart data.
75
+
76
+ ```
77
+ GET https://web3.binance.com/bapi/defi/v1/public/wallet-direct/buw/wallet/token/kline
78
+ ?contractAddress=<address>
79
+ &platform=<bsc|solana|base|eth>
80
+ &interval=<interval>
81
+ &limit=<count>
82
+ &from=<timestamp_ms> # optional, limit takes precedence
83
+ ```
84
+
85
+ Supported intervals: `1s`, `1m`, `5m`, `15m`, `30m`, `1h`, `4h`, `1d`, `1w`, `1M`
86
+
87
+ Response is a 2D array per candle:
88
+ ```
89
+ [open, high, low, close, volume, timestamp_ms, transaction_count]
90
+ ```
91
+
92
+ ## Notes
93
+
94
+ - All numeric values are returned as strings — convert before calculations
95
+ - Logo URLs require prefix: `https://bin.bnbstatic.com`
96
+ - `limit` parameter takes precedence over `from` in K-Line requests
97
+
98
+ ## Usage Examples
99
+
100
+ ```
101
+ User: Find the token PEPE on BSC
102
+ → GET Token Search, keyword:PEPE, chainId:56
103
+
104
+ User: What is the current price and market cap of <contract>?
105
+ → GET Token Dynamic Data
106
+
107
+ User: Show me the 4h chart for <contract> on Solana
108
+ → GET K-Line, platform:solana, interval:4h, limit:100
109
+
110
+ User: Who created this token and does it have social links?
111
+ → GET Token Metadata
112
+ ```
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: binance-trading-signal
3
+ description: Binance Web3 official skill — Smart Money on-chain trading signals tracking professional investor buy/sell activity on BSC and Solana. Sourced from github.com/binance/binance-skills-hub.
4
+ metadata: { "cryptoclaw": { "emoji": "📡", "always": false } }
5
+ ---
6
+
7
+ # Binance Smart Money Trading Signals
8
+
9
+ Official Binance Web3 skill for tracking on-chain Smart Money trading signals — follow professional investors' buy/sell activity.
10
+
11
+ > Source: [binance/binance-skills-hub](https://github.com/binance/binance-skills-hub/tree/main/skills/binance-web3/trading-signal)
12
+
13
+ ## Supported Chains
14
+
15
+ | Chain | chainId |
16
+ |--------|---------|
17
+ | BSC | 56 |
18
+ | Solana | CT_501 |
19
+
20
+ ## API — Smart Money Signals
21
+
22
+ ```
23
+ POST https://web3.binance.com/bapi/defi/v1/public/wallet-direct/buw/wallet/web/signal/smart-money
24
+ Content-Type: application/json
25
+
26
+ {
27
+ "chainId": "56",
28
+ "page": 1,
29
+ "pageSize": 20,
30
+ "smartSignalType": "" // optional filter, empty string = all
31
+ }
32
+ ```
33
+
34
+ Max `pageSize`: 100.
35
+
36
+ ## Response Fields
37
+
38
+ | Field | Description |
39
+ |--------------------|--------------------------------------------------|
40
+ | `signalId` | Unique signal identifier |
41
+ | `tokenSymbol` | Token ticker symbol |
42
+ | `contractAddress` | Token contract address |
43
+ | `logoUrl` | Token logo (prepend `https://bin.bnbstatic.com`) |
44
+ | `direction` | `buy` or `sell` |
45
+ | `smartMoneyCount` | Number of smart money wallets involved |
46
+ | `timeframe` | Signal observation window |
47
+ | `triggerTime` | Unix timestamp when signal was triggered |
48
+ | `triggerPrice` | Price at signal trigger |
49
+ | `currentPrice` | Current token price |
50
+ | `highestPrice` | Maximum price achieved after signal |
51
+ | `maxGainPct` | Maximum gain percentage from trigger |
52
+ | `exitRate` | Percentage of smart money that has exited |
53
+ | `status` | `active` / `timeout` / `completed` |
54
+ | `tags` | Token classifications (DEX Paid, Pumpfun, etc.) |
55
+ | `launchPlatform` | Origin platform (Pump.fun, Moonshot, etc.) |
56
+
57
+ ## Signal Status
58
+
59
+ - **active** — Signal is currently valid and ongoing
60
+ - **timeout** — Exceeded observation period without resolution
61
+ - **completed** — Target reached or stop loss triggered
62
+
63
+ ## Usage Examples
64
+
65
+ ```
66
+ User: Show me latest smart money buy signals on BSC
67
+ → POST chainId:56, page:1, pageSize:20, direction filter: buy
68
+
69
+ User: What are smart money selling on Solana?
70
+ → POST chainId:CT_501, smartSignalType: sell signals
71
+
72
+ User: Find tokens where smart money has max gain > 50%
73
+ → GET signals, filter by maxGainPct > 50
74
+
75
+ User: Show active buy signals from Pump.fun tokens
76
+ → GET signals, filter status:active + launchPlatform:pump.fun
77
+ ```
78
+
79
+ ## Notes
80
+
81
+ - Logo URLs require prefix: `https://bin.bnbstatic.com`
82
+ - Prices and percentages are returned as strings — convert for calculations
83
+ - This is for informational purposes only — not investment advice
84
+ - Past signal performance does not guarantee future results