sigint-os 1.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/README.md ADDED
@@ -0,0 +1,112 @@
1
+ # sigint-os
2
+
3
+ Client SDK for [SIGINT](https://sigint-agent.vercel.app) — the autonomous ETH signal agent.
4
+
5
+ SIGINT reads live on-chain data (funding rates, liquidations, DEX/CEX volume), forms a directional conviction on ETH, executes a real USDC trade with its own money, then returns the signal with a `tradeHash` — verifiable proof it had skin in the game before you paid.
6
+
7
+ Every call costs $0.05–$0.20 USDC via [x402](https://www.x402.org), paid automatically.
8
+
9
+ ---
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ npm install sigint-os pinion-os
15
+ # or
16
+ bun add sigint-os pinion-os
17
+ ```
18
+
19
+ Requires a wallet with **USDC on Base** for the x402 payment.
20
+
21
+ ---
22
+
23
+ ## Usage
24
+
25
+ ### One-liner
26
+
27
+ ```typescript
28
+ import { getEthSignal } from "sigint-os"
29
+
30
+ const signal = await getEthSignal({
31
+ privateKey: process.env.WALLET_KEY // wallet with USDC on Base
32
+ })
33
+
34
+ console.log(signal.direction) // "up" | "down"
35
+ console.log(signal.confidence) // 72
36
+ console.log(signal.reasoning) // "Funding rate positive at 0.02%, longs crowded..."
37
+ console.log(signal.tradeHash) // "0xb910..." — agent's own trade on Base
38
+ ```
39
+
40
+ ### Reusable client
41
+
42
+ ```typescript
43
+ import { SigintClient } from "sigint-os"
44
+
45
+ const sigint = new SigintClient({ privateKey: process.env.WALLET_KEY })
46
+
47
+ // Call as many times as you need
48
+ const signal = await sigint.getSignal()
49
+ ```
50
+
51
+ ### With PinionOS directly (no SDK)
52
+
53
+ ```typescript
54
+ import { PinionClient, payX402Service } from "pinion-os"
55
+
56
+ const pinion = new PinionClient({ privateKey: process.env.WALLET_KEY })
57
+ const signal = await payX402Service(
58
+ pinion.signer,
59
+ "https://sigint-agent-production.up.railway.app/signal/eth"
60
+ )
61
+ ```
62
+
63
+ ---
64
+
65
+ ## Signal Response
66
+
67
+ ```typescript
68
+ {
69
+ direction: "up" | "down", // ETH price direction prediction
70
+ confidence: number, // 0–100
71
+ currentPrice: number, // ETH price at signal formation
72
+ resolveAt: number, // UNIX ms — when prediction resolves (1h)
73
+ reasoning: string, // agent's on-chain analysis
74
+ tradeHash: string | null, // agent's own trade hash (verify on Basescan)
75
+ onchainContext: {
76
+ fundingRate: number, // 8h funding rate (%)
77
+ liquidationBias: string, // "long-heavy" | "short-heavy" | "balanced"
78
+ dexCexVolumeRatio: number // DEX vol / CEX vol
79
+ },
80
+ trackRecord: {
81
+ correct: number, // count of correct resolved signals
82
+ total: number, // count of all resolved signals
83
+ tradePnl: number // agent's cumulative trade PnL in USDC
84
+ }
85
+ }
86
+ ```
87
+
88
+ The `tradeHash` is verifiable on [Basescan](https://basescan.org) — the agent executed a real USDC → ETH swap **before** generating this response.
89
+
90
+ ---
91
+
92
+ ## How It Works
93
+
94
+ 1. You call `getEthSignal()` — your wallet pays $0.05–$0.20 USDC via x402
95
+ 2. SIGINT fetches live on-chain context (price, funding, liquidations, volume)
96
+ 3. SIGINT reasons with `skills.chat()` → forms direction + confidence
97
+ 4. SIGINT executes its own $0.50 USDC → ETH trade on 1inch (before responding)
98
+ 5. Signal returned with `tradeHash` — the agent committed first
99
+
100
+ ---
101
+
102
+ ## Live Agent
103
+
104
+ - **Dashboard:** [sigint-agent.vercel.app](https://sigint-agent.vercel.app)
105
+ - **Wallet:** [`0x9fe05351902e13c341e54f681e9541790efbe9b9`](https://basescan.org/address/0x9fe05351902e13c341e54f681e9541790efbe9b9)
106
+ - **x402scan:** [x402scan.com/server/effc53a3...](https://www.x402scan.com/server/effc53a3-3235-48d5-a054-81c80b01bad2)
107
+
108
+ ---
109
+
110
+ ## License
111
+
112
+ MIT